-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarkdown_word.Rmd
53 lines (40 loc) · 1.06 KB
/
markdown_word.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "Test Report"
author: "Matt Bixley"
date: "July 3, 2015"
output:
word_document:
reference_docx: resources/markdown_styles.docx
# reference_docx: resources/PLOS_One_word_Template.docx
subtitle: "test setup for Markdown"
abstract: "This document provides an introduction to R Markdown and looks at the use of templates within as MSWord environment"
---
```{r setup, include = F}
knitr::opts_chunk$set(
echo = TRUE, warning = FALSE, message = FALSE
)
library(knitr)
library(palmerpenguins)
library(tidyverse)
```
My report starts here.
# Header 1
write a paragraph here
## Header 2
write something else
\pagebreak
### Header 3 - Table
```{r table, echo = F}
penguins %>%
group_by(species) %>%
select(contains(c("length", "depth", "mass"))) %>%
summarize_all(., mean, na.rm = TRUE) %>%
kable(caption = "Summarized Data", digits = 2)
```
#### Header 4 - Plot
```{r plot, echo = T}
penguins %>%
ggplot(aes(x = flipper_length_mm, y = body_mass_g)) +
geom_point(aes(colour = species, shape = species), size = 3)
```
#### Another Header