| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 1 | --- |
| 2 | title: "Untitled" |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 3 | output: |
| 4 | revealjs::revealjs_presentation: default |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 5 | --- |
| 6 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 7 | # R Markdown |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 8 | |
| 9 | This 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 | |
| 11 | When 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 Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 13 | # Slide with Bullets |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 14 | |
| 15 | - Bullet 1 |
| 16 | - Bullet 2 |
| 17 | - Bullet 3 |
| 18 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 19 | # Slide with R Code and Output |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 20 | |
| 21 | ```{r} |
| 22 | summary(cars) |
| 23 | ``` |
| 24 | |
| Christophe Dervieux | 9e2a6c7 | 2021-09-24 15:44:17 +0200 | [diff] [blame] | 25 | # Slide with table |
| 26 | |
| 27 | ```{r, echo = FALSE} |
| 28 | knitr::kable(head(cars)) |
| 29 | ``` |
| 30 | |
| 31 | You can use any external R package **gt** or **flextable** to create beautiful tables. |
| 32 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 33 | # Slide with Plot |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 34 | |
| 35 | ```{r, echo=FALSE} |
| 36 | plot(cars) |
| 37 | ``` |
| 38 | |
| Christophe Dervieux | ba24816 | 2021-09-24 15:47:20 +0200 | [diff] [blame] | 39 | # Slide with Quote |
| 40 | |
| 41 | You 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 Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 45 | # Vertical slides |
| 46 | |
| 47 | Slides can be nested inside of each other. |
| 48 | |
| 49 | Use the Space key to navigate through all slides. Or the arrow key. |
| 50 | |
| 51 | ## Basement Level 1 |
| 52 | |
| 53 | Nested slides are useful for adding additional detail underneath a high level horizontal slide. |
| 54 | |
| 55 | ## Basement Level 2 |
| 56 | |
| 57 | That's it, time to go back up. |
| 58 | |
| 59 | Keep pressing the Space key to go to next horizontal slide. |
| 60 | |
| Christophe Dervieux | d36309e | 2021-09-24 16:13:19 +0200 | [diff] [blame] | 61 | # Slides overview |
| 62 | |
| 63 | You can press ESC to enter the slide overview layout and quickly see and access any horizontal / vertical slide in the presentation. |
| 64 | |
| 65 | In overview mode, you can navigate using arrow keys and go back to normal mode using ESC again. |
| 66 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 67 | # Slide with two columns layout |
| atusy | bfa2af7 | 2021-09-21 02:01:18 +0900 | [diff] [blame] | 68 | |
| 69 | Main content |
| 70 | |
| 71 | :::: columns |
| 72 | |
| 73 | ::: column |
| 74 | |
| 75 | Showing an [underline text]{.underline} on the left |
| 76 | |
| 77 | ::: |
| 78 | |
| 79 | ::: column |
| 80 | |
| 81 | and a text in [smallcap]{.smallcaps} on the right |
| 82 | |
| 83 | ::: |
| 84 | |
| 85 | :::: |
| 86 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 87 | # Insert an image |
| christophe dervieux | faf8be1 | 2021-09-21 15:40:40 +0200 | [diff] [blame] | 88 | |
| 89 | You can insert images |
| 90 | |
| 91 |  |
| 92 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 93 | # Insert an image on the whole slide |
| christophe dervieux | faf8be1 | 2021-09-21 15:40:40 +0200 | [diff] [blame] | 94 | |
| 95 | Using the `.strech` class |
| 96 | |
| 97 | {.stretch} |
| christophe dervieux | ca0e0f2 | 2021-09-23 10:35:55 +0200 | [diff] [blame] | 98 | |
| christophe dervieux | 83a5cba | 2021-09-23 18:30:16 +0200 | [diff] [blame] | 99 | This will not show any caption even when `fig_caption` is `TRUE`. |
| 100 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 101 | # Fragments |
| christophe dervieux | 83a5cba | 2021-09-23 18:30:16 +0200 | [diff] [blame] | 102 | |
| Christophe Dervieux | a9a379f | 2021-09-24 15:07:15 +0200 | [diff] [blame] | 103 | Hit the next arrow (or space key)... |
| christophe dervieux | 83a5cba | 2021-09-23 18:30:16 +0200 | [diff] [blame] | 104 | |
| 105 | . . . |
| 106 | |
| 107 | to step through |
| 108 | |
| 109 | [...a]{.fragment} [fragmented]{.fragment} [slide.]{.fragment} |
| 110 | |
| 111 | ::: fragment |
| 112 | Also called an incremental reveal. |
| Christophe Dervieux | b3ac2a9 | 2021-09-24 14:49:44 +0200 | [diff] [blame] | 113 | ::: |
| 114 | |
| Christophe Dervieux | f8dd374 | 2021-09-24 15:08:08 +0200 | [diff] [blame] | 115 | # Slide transition {data-transition="zoom"} |
| Christophe Dervieux | b3ac2a9 | 2021-09-24 14:49:44 +0200 | [diff] [blame] | 116 | |
| Christophe Dervieux | f8dd374 | 2021-09-24 15:08:08 +0200 | [diff] [blame] | 117 | This slide was revealed with another slide transition set using `data-transition` attributes. You can also change this globally for all slides |
| 118 | |
| 119 | ```yaml |
| 120 | output: |
| 121 | revealjs::revealjs_presentation: |
| 122 | transition: zoom |
| Christophe Dervieux | 767c8ba | 2021-09-24 15:33:15 +0200 | [diff] [blame] | 123 | ``` |
| 124 | # Slide background {data-background-color="#33ffd8"} |
| 125 | |
| 126 | This slide has another background changed using `data-background-color`. |
| 127 | |
| 128 | Next vertical slides show variants |
| 129 | |
| 130 | ## Using an image 1 {data-background-image="https://cran.r-project.org/Rlogo.svg"} |
| 131 | |
| 132 | Which 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 | |
| 140 | Most of configuration there should work |
| 141 | |
| Christophe Dervieux | 80482d8 | 2021-09-24 15:40:09 +0200 | [diff] [blame] | 142 | https://revealjs.com/backgrounds/ |
| 143 | |
| 144 | # Background transitions {background-color="#4d7e65" data-background-transition="zoom"} |
| 145 | |
| 146 | The 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 |
| 149 | output: |
| 150 | revealjs::revealjs_presentation: |
| 151 | background_transition: "zoom" |
| Christophe Dervieux | 3dbc90f | 2021-09-24 16:08:28 +0200 | [diff] [blame] | 152 | ``` |
| 153 | |
| 154 | # Link between slides {#link} |
| 155 | |
| 156 | You 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 | |
| 168 | Click following arrow to go to previous slides |
| 169 | |
| 170 | {.navigate-up style="background: rgba(255,255,255,0.1); transform: rotate(180deg);"} |
| 171 | |
| Christophe Dervieux | 4bdb3e9 | 2021-09-24 16:25:04 +0200 | [diff] [blame] | 172 | More on this at https://revealjs.com/links/ |
| 173 | |
| 174 | # Speaker view |
| 175 | |
| 176 | A speaker view is available if you activate the `notes` pluggin |
| 177 | |
| 178 | ````yaml |
| 179 | output: |
| 180 | revealjs::revealjs_presentation: |
| 181 | self_contained: false |
| 182 | reveal_plugins: notes |
| 183 | ```` |
| 184 | |
| 185 | On any slide, pressing S key will enter Speaker view in another window with a timer, preview of next slides and speaker |
| 186 | |
| 187 | ::: notes |
| 188 | You can then add notes using a div of class `notes` |
| Christophe Dervieux | 9c1392c | 2021-09-24 16:38:58 +0200 | [diff] [blame] | 189 | ::: |
| 190 | |
| 191 | # Taking a pause |
| 192 | |
| Christophe Dervieux | cc46ea0 | 2021-09-24 17:02:49 +0200 | [diff] [blame] | 193 | Press B or . to hide the content of the slide at your convenience. |
| 194 | |
| 195 | # Auto slide {data-autoslide=10000} |
| 196 | |
| 197 | You can set the configuration `autoSlide` (in millisecond) to automatically switch to next slide after a certain time. |
| 198 | |
| 199 | This can be done on a per slide basis using `data-autoslide` or globally using |
| 200 | ````yaml |
| 201 | output: |
| 202 | revealjs::revealjs_presentation: |
| 203 | autoSlide: 10000 #10 sec |
| 204 | ```` |
| 205 | # Auto slide next |
| 206 | |
| 207 | It 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. |