-
Notifications
You must be signed in to change notification settings - Fork 1
/
99_Appendix.Rmd
25 lines (20 loc) · 926 Bytes
/
99_Appendix.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
# (APPENDIX) Appendix {-}
# Name of Appendix
```{r iris-data-fig, fig.cap="sepal length vs sepal width of the iris data."}
plot(iris$Sepal.Width, iris$Sepal.Length, xlab = "Sepal Width", ylab = "Sepal Length")
```
# Name of Appendix
```{r}
library(magrittr) #Get the pipe operator
```
```{r iris-data, eval= knitr::is_latex_output()}
#ETD guidelines allows fonts to go down to 8 in tables
knitr::kable(head(iris, 25), caption = "The iris data") %>%
kableExtra::kable_styling(font_size = 8, latex_options = "hold_position")
```
```{r iris-data-word, eval= !knitr::is_latex_output()}
#KableExtra does not play nice with word unless you use "simple" format
#You can conditionally evaluate the chunks with the eval chunk option and knitr::is_latex_output function
knitr::kable(head(iris, 25), format = "simple", caption = "The iris data") %>%
kableExtra::kable_styling(font_size = 8, latex_options = "hold_position")
```