forked from exporl/kuleuven-templates
/
presentation-r-example.Rmd
162 lines (102 loc) · 3.14 KB
/
presentation-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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
title: Thorough research of this special topic regarding the influence of various factors
subtitle: Yeah we did it!
author: [Author 1, Author 2]
date: Date of presentation
institute: Institute, Dept., University
biblio-files: parsed-references.bib
toc: true
sectiontoc: true
sectiontitle: true
captionfont: size=\scriptsize
# customization of the templates
header-includes: \input{presentation-example.header}
knit: (function(input, encoding, make = TRUE) { source('templates/makefile-renderer.R', local = TRUE) })
---
%% smart
%% to=beamer
%% slide-level 3
%% template=templates/presentation.tex
%% filter=templates/presentation-filters.py
%% biblatex
```{r packages-and-options, cache=FALSE}
library('ggplot2')
library('knitr')
linesize <- 0.25
pointsize <- 1
theme_set(theme_bw(base_size = 6) + theme(
line = element_line(size = linesize, colour = 'black', linetype = 1, lineend = 'butt')))
for (geom in c('point', 'line', 'hline', 'vline', 'abline', 'boxplot', 'pointrange', 'errorbar', 'errorbarh')) {
update_geom_defaults(geom, list(size = ifelse(geom == 'point', pointsize, linesize)))
}
knitr::opts_chunk$set(fig.width = 4.7, fig.height = 1.9)
```
# Introduction
### Introduction Slide 1
![<1|handout:0><2>{f}](presentation-examplefig,presentation-examplefig-magenta)
<!-- Comments -->
Default lists:
- Citations [@Macherey2006] and @Macherey2006
- references have a clickable link to Pubmed or Amazon
- Standard abreviations \\eg and \\ie for \eg and \ie
- Units like \pps{900}
- **Highlights** and *highlights*
# Methods
# Results
## Part 1
[smallfooter]
### Results Slide 1
- You can replace the footer by a minimal version
[largefooter]
# Figure Examples
### Full Screen
- You can show full-screen figures as on the next slide
![{s}](presentation-examplefig-electrodes)
[largefooter]
### Fill Vertical
![{v}](presentation-examplefig-electrodes)
### Without Caption
[columns=2]
[column]
![]({h}presentation-examplefig-electrodes)
[column]
![{h}](presentation-examplefig-electrodes)
[/columns]
### Animated
[columns=2]
[column]
![<1|handout:0><2>]({f}presentation-examplefig-electrodes,{f}presentation-examplefig-electrodes-ref)
[column]
![<1|handout:0><2>{f}](presentation-examplefig-electrodes,presentation-examplefig-electrodes-ref)
[/columns]
### Animated 2
[columns=2]
[column]
![<1|handout:0><2>{f}](presentation-examplefig-electrodes)
![<1|handout:0><2>{f}](presentation-examplefig-electrodes-ref)
[column]
```{r iris, fig.cap='<1|handout:0><2>iris data', fig.width=2.2, fig.height=2.2}
ggplot(iris, aes(Sepal.Length, Petal.Length)) +
geom_point()
ggplot(iris, aes(Sepal.Length, Petal.Length)) +
geom_point(aes(color = Species)) +
guides(color = FALSE)
```
[/columns]
### With Caption
[columns=2]
[column]
![The 10-20 system]({width=\textwidth}presentation-examplefig-electrodes)
[column]
![{width=\textwidth}The 10-20 system](presentation-examplefig-electrodes)
[/columns]
# Conclusions
[notoc]
[nosupertitle]
### Conclusions
Numbered lists:
1. First paragraph \pause
2. Second paragraph
3. Third paragraph
Continued paragraphs
<!-- vi: set spell spelllang=en linebreak et nolist showbreak=>\ \ \ : -->