-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path01_Chapter1.Rmd
58 lines (37 loc) · 2.14 KB
/
01_Chapter1.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
54
55
56
57
58
# My Chapter Title
\pagenumbering{arabic}
## Introduction
General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here. General background information and your literature review goes here.
## Methods
This is how I did the thing with this data (Table \@ref(tab:testtable))
```{r include=FALSE}
data("mtcars")
```
```{r testtable}
knitr::kable(summary(cars), caption = "Summary of the mtcars data.", booktabs=TRUE)
```
## Results
### Level 3
#### Level 4
##### Level 5
###### Level 6
### A Really Long Heading so I see what happens when it takes up more than one line just in case we're geeting crazy
These are my first results (Figure \@ref(fig:cars-plot)).
```{r cars-plot, fig.cap="The cars data. Sentence two.", fig.scap= "The cars data."}
#For a multi-sentence caption use fig.scap set as the first sentence so only that goes to the table of figures
plot(cars) # a scatterplot
```
And then I also got these results (Figure \@ref(fig:test-fig)).
```{r include=FALSE}
png(filename = "Figures/pressure_plot.png",width = 5, height = 5, units = "in", res = 300)
plot(pressure)
dev.off()
```
```{r test-fig, fig.cap= "A really long figure caption so I see what happens when it takes up more than one line just in case we're getting crazy"}
knitr::include_graphics("Figures/pressure_plot.png")
```
```{r testtable-2}
knitr::kable(head(cars), caption = "A really long table caption so I see what happens when it takes up more than one line just in case we're getting crazy")
```
## Discussion
Now I tell you how this fits in the context of my field