-
Notifications
You must be signed in to change notification settings - Fork 215
/
front.Rmd
27 lines (20 loc) · 680 Bytes
/
front.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
```{r global_palette, results = 'asis'}
rm(list=ls())
tropical= c('darkorange', 'dodgerblue', 'hotpink', 'limegreen', 'yellow')
palette(tropical)
```
```{r global_options,warning=FALSE,message=FALSE}
## see ch. 10 Hooks of Xie's knitr book
library(knitr)
knit_hooks$set(setPch = function(before, options, envir) {
if(before) par(pch = 19)
})
opts_chunk$set(setPch = TRUE)
```
```{r global_plot,warning=FALSE, message=FALSE}
knitr::opts_chunk$set(fig.width=5, fig.height=5, size="footnotesize",
warning=FALSE, message=FALSE)
knitr::knit_hooks$set(small.mar = function(before, options, envir) {
if (before) graphics::par(mar = c(5,5,1.5,1))
})
```