blob: d8309b9ad6e2c3a9c6aa8f6ac38f560fc9e9eba3 [file] [log] [blame]
JJ Allaire2ec40242014-09-15 09:18:39 -04001---
2title: "Untitled"
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +02003output:
4 revealjs::revealjs_presentation: default
JJ Allaire2ec40242014-09-15 09:18:39 -04005---
6
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +02007# R Markdown
JJ Allaire2ec40242014-09-15 09:18:39 -04008
9This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
10
11When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
12
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020013# Slide with Bullets
JJ Allaire2ec40242014-09-15 09:18:39 -040014
15- Bullet 1
16- Bullet 2
17- Bullet 3
18
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020019# Slide with R Code and Output
JJ Allaire2ec40242014-09-15 09:18:39 -040020
21```{r}
22summary(cars)
23```
24
Christophe Dervieux9e2a6c72021-09-24 15:44:17 +020025# Slide with table
26
27```{r, echo = FALSE}
28knitr::kable(head(cars))
29```
30
31You can use any external R package **gt** or **flextable** to create beautiful tables.
32
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020033# Slide with Plot
JJ Allaire2ec40242014-09-15 09:18:39 -040034
35```{r, echo=FALSE}
36plot(cars)
37```
38
Christophe Dervieuxba248162021-09-24 15:47:20 +020039# Slide with Quote
40
41You can use usual markdown syntax `>` to add a Quote part on the slide
42
43> This is a nice quote by an awesome person !
44
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020045# Vertical slides
46
47Slides can be nested inside of each other.
48
49Use the Space key to navigate through all slides. Or the arrow key.
50
51## Basement Level 1
52
53Nested slides are useful for adding additional detail underneath a high level horizontal slide.
54
55## Basement Level 2
56
57That's it, time to go back up.
58
59Keep pressing the Space key to go to next horizontal slide.
60
Christophe Dervieuxd36309e2021-09-24 16:13:19 +020061# Slides overview
62
63You can press ESC to enter the slide overview layout and quickly see and access any horizontal / vertical slide in the presentation.
64
65In overview mode, you can navigate using arrow keys and go back to normal mode using ESC again.
66
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020067# Slide with two columns layout
atusybfa2af72021-09-21 02:01:18 +090068
69Main content
70
71:::: columns
72
73::: column
74
75Showing an [underline text]{.underline} on the left
76
77:::
78
79::: column
80
81and a text in [smallcap]{.smallcaps} on the right
82
83:::
84
85::::
86
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020087# Insert an image
christophe dervieuxfaf8be12021-09-21 15:40:40 +020088
89You can insert images
90
91![revealjs logo](https://revealjs.com/images/logo/reveal-black-text.svg)
92
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +020093# Insert an image on the whole slide
christophe dervieuxfaf8be12021-09-21 15:40:40 +020094
95Using the `.strech` class
96
97![revealjs logo](https://revealjs.com/images/logo/reveal-black-text.svg){.stretch}
christophe dervieuxca0e0f22021-09-23 10:35:55 +020098
christophe dervieux83a5cba2021-09-23 18:30:16 +020099This will not show any caption even when `fig_caption` is `TRUE`.
100
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +0200101# Fragments
christophe dervieux83a5cba2021-09-23 18:30:16 +0200102
Christophe Dervieuxa9a379f2021-09-24 15:07:15 +0200103Hit the next arrow (or space key)...
christophe dervieux83a5cba2021-09-23 18:30:16 +0200104
105. . .
106
107to step through
108
109[...a]{.fragment} [fragmented]{.fragment} [slide.]{.fragment}
110
111::: fragment
112Also called an incremental reveal.
Christophe Dervieuxb3ac2a92021-09-24 14:49:44 +0200113:::
114
Christophe Dervieuxf8dd3742021-09-24 15:08:08 +0200115# Slide transition {data-transition="zoom"}
Christophe Dervieuxb3ac2a92021-09-24 14:49:44 +0200116
Christophe Dervieuxf8dd3742021-09-24 15:08:08 +0200117This slide was revealed with another slide transition set using `data-transition` attributes. You can also change this globally for all slides
118
119```yaml
120output:
121 revealjs::revealjs_presentation:
122 transition: zoom
Christophe Dervieux767c8ba2021-09-24 15:33:15 +0200123```
124# Slide background {data-background-color="#33ffd8"}
125
126This slide has another background changed using `data-background-color`.
127
128Next vertical slides show variants
129
130## Using an image 1 {data-background-image="https://cran.r-project.org/Rlogo.svg"}
131
132Which will be used in whole background
133
134## Using an image 2 {data-background-image="https://cran.r-project.org/Rlogo.svg" data-background-repeat="repeat" data-background-size="100px"}
135
136## Using a gif {data-background-image="https://media4.giphy.com/media/vKHKDIdvxvN7vTAEOM/giphy.gif" data-background-size="contain" data-background-repeat="no-repeat"}
137
138## What to customize
139
140Most of configuration there should work
141
Christophe Dervieux80482d82021-09-24 15:40:09 +0200142https://revealjs.com/backgrounds/
143
144# Background transitions {background-color="#4d7e65" data-background-transition="zoom"}
145
146The transition of the background revealing can be customized using `data-background-transition` attribute on a per slide basis or globally using the option configuration:
147
148```yaml
149output:
150 revealjs::revealjs_presentation:
151 background_transition: "zoom"
Christophe Dervieux3dbc90f2021-09-24 16:08:28 +0200152```
153
154# Link between slides {#link}
155
156You can easily link between slides using the slide number
157
158[link to the first slide](#0)
159
160## Or using a specific id
161
162[Link to the slides about links](#link)
163
164## You can also create link for navigation
165
166[Link to previous horizontal slide](){.navigate-prev}
167
168Click following arrow to go to previous slides
169
170![arrow up](https://static.slid.es/reveal/arrow.png "Click me"){.navigate-up style="background: rgba(255,255,255,0.1); transform: rotate(180deg);"}
171
Christophe Dervieux4bdb3e92021-09-24 16:25:04 +0200172More on this at https://revealjs.com/links/
173
174# Speaker view
175
176A speaker view is available if you activate the `notes` pluggin
177
178````yaml
179output:
180 revealjs::revealjs_presentation:
181 self_contained: false
182 reveal_plugins: notes
183````
184
185On any slide, pressing S key will enter Speaker view in another window with a timer, preview of next slides and speaker
186
187::: notes
188You can then add notes using a div of class `notes`
Christophe Dervieux9c1392c2021-09-24 16:38:58 +0200189:::
190
191# Taking a pause
192
Christophe Dervieuxcc46ea02021-09-24 17:02:49 +0200193Press B or . to hide the content of the slide at your convenience.
194
195# Auto slide {data-autoslide=10000}
196
197You can set the configuration `autoSlide` (in millisecond) to automatically switch to next slide after a certain time.
198
199This can be done on a per slide basis using `data-autoslide` or globally using
200````yaml
201output:
202 revealjs::revealjs_presentation:
203 autoSlide: 10000 #10 sec
204````
205# Auto slide next
206
207It was activated automatically by previous slide.
208
209* Setting globally `autoSlide` to 0 (the default) deactivate auto progress but allow per slide config using `data-autoslide` attribute.
210* Setting to an integer value in millisecond activates for all slides. A special control should appear on the slide footer. Using `autoSlideStoppable: false` will prevent any action to stop the slide progress.
211* Setting to `autoSlide: false` will disallow auto progress even with the attributes.