forked from exporl/kuleuven-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper-r-example.Rmd
73 lines (57 loc) · 1.82 KB
/
paper-r-example.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
title: Thorough research of this special topic regarding the influence of various factors
author: [Author 1, Author 2]
biblio-files: parsed-references.bib
classoptions: DIV=14,twocolumn,fontsize=9pt
biboptions: doi=true
toc: true
toc-depth: '2'
numbersections: true
numbersectionlevel: '2'
knit: (function(input, encoding, make = TRUE) { source('templates/makefile-renderer.R', local = TRUE) })
---
%% smart
%% to=latex
%% template=templates/report.tex
%% filter=templates/paper-filters.py
%% biblatex
```{r packages-and-options, cache=FALSE}
library('ggplot2')
library('knitr')
theme_set(theme_bw(base_size = 8) + theme(legend.position = 'bottom'))
knitr::opts_chunk$set(fig.width = 3, fig.height = 2.5)
```
# Heading 1
## Heading 2
### Heading 3
<!-- Comments -->
Default lists:
- Citations [@Macherey2006] and inline, \eg @Macherey2006, references have a clickable link to Pubmed (articles) or Amazon (books)
- Standard abreviations \\eg and \\ie for \eg and \ie to get the spacing right.
- Some units like \pps{900}, look in the template to see which ones are available.
- **Highlights** and *highlights*.
## Unnumbered Heading {-}
Numbered lists:
1. First paragraph
2. Second paragraph
3. Third paragraph
Continued paragraphs
##### easy margin notes
Inlined lists:
[ipe]
\item Aenean faucibus.
\item Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.
\item Curabitur auctor semper nulla.
[/ipe]
##### *invisible heading
See *man pandoc_markdown* for more information.
```{r iris, fig.cap='iris data'}
ggplot(iris, aes(Sepal.Length, Petal.Length)) +
geom_point(aes(color = Species)) +
facet_wrap(~ Species)
```
```{r iris-wide, fig.width=6.6, fig.height=3.5, fig.cap='*iris data spanning columns'}
ggplot(iris, aes(Sepal.Length, Petal.Length)) +
geom_point(aes(color = Species)) +
facet_wrap(~ Species)
```