Garrick Aden-Buie & Silvia Canelón
Using xaringan or rmarkdown
Using xaringanExtra
---## Popular Cultural References to Lemurs1. Madagascar, the movie
---## Popular Cultural References to Lemurs1. Madagascar, the movie???Popular cultural references to lemurs include the Disney movie Madagascar. Really, it's all anyone knows about lemurs.
Press P to toggle presenter mode
Popular cultural references to lemurs include the Disney movie Madagascar. Really, it's all anyone knows about lemurs.
The notes don't have to be just for you!
If they are for you...
The notes in presenter mode aren't just to remind you of your script, they can also be very helpful to others who find your slides online!
How can you view the presenter notes and share your screen at the same time?
The notes don't have to be just for you!
If they are for you...
Present from the private browser window without moon reader
Clone the slides into a new window with C
Pick the full browser or the cloned window to share
Press P in the other window
The notes in presenter mode aren't just to remind you of your script, they can also be very helpful to others who find your slides online!
How can you view the presenter notes and share your screen at the same time?
Don't try to present from inside RStudio. Instead, use a private browser window, either from the slides shared online or using the knit button.
Clone the slides into a new window and then choose either the small window or the full browser to share. If you want people to only see the slides, share the cloned window. If you want to share browser tabs, use the full browser. Press
The greatest hard thing about xaringan.
library(dplyr)library(ggplot2)lemurs <- readRDS("lemurs.rds")lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )
library(dplyr)library(ggplot2)lemurs <- readRDS("lemurs.rds")lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )
How can we
show the code
and the plot
separately?
```{r lemur-weight}# any R code ...```
```{r lemur-weight, eval=FALSE}# any R code ...```
```{r lemur-weight, eval=FALSE}# any R code ...```---```{r ref.label="lemur-weight", echo=FALSE}```
```{r lemur-weight}# plotting R code ...```
```{r lemur-weight}# plotting R code ...```
```{r lemur-weight, fig.show="hide"}# plotting R code ...````)
```{r lemur-weight, fig.show="hide"}# plotting R code ...```---`)
```{r lemur-weight, fig.show="hide"}# plotting R code ...```---background-image: url(`r knitr::fig_chunk("lemur-weight", "png")`)background-size: cover
Add tabbed panels to slides with panelset
Add an overview of your presentation with tile view
Make your slides editable
Scribble on your slides during your presentation with scribble
Share your slides in style with share again
library(remotes)install_github("gadenbuie/xaringanExtra")
library(remotes)install_github("gadenbuie/xaringanExtra")
```{r xaringanExtra, echo=FALSE}library(xaringanExtra)use_xaringan_extra( c("tile_view", "panelset", "share_again", "editable"))use_scribble( pen_color = "#d33f49", pen_size = 4, palette = c("#d33f49", "#466683", "#338d70", "#c0af3f", "#ff6300"))```
.panelset[]
.panelset[.panel[]]
.panelset[.panel[This content will show up in panel 1!]]
.panelset[.panel[.panel-name[First panel]This content will show up in panel 1!]]
.panelset[.panel[.panel-name[First panel]This content will show up in panel 1!].panel[.panel-name[Second panel]This content will show up in the **second panel**!]]
This content will show up in panel 1!
This content will show up in the second panel!
```{r lemur-weight}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```
.panelset[```{r lemur-weight}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```]
.panelset[```{r lemur-weight, panelset = TRUE}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```]
Practice controlling code output and using panelsets.
Using xaringan or rmarkdown
Using xaringanExtra
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
o | Tile View: Overview of Slides |
s | Toggle scribble toolbox |
Esc | Back to slideshow |
Garrick Aden-Buie & Silvia Canelón
Using xaringan or rmarkdown
Using xaringanExtra
---## Popular Cultural References to Lemurs1. Madagascar, the movie
---## Popular Cultural References to Lemurs1. Madagascar, the movie???Popular cultural references to lemurs include the Disney movie Madagascar. Really, it's all anyone knows about lemurs.
Press P to toggle presenter mode
Popular cultural references to lemurs include the Disney movie Madagascar. Really, it's all anyone knows about lemurs.
The notes don't have to be just for you!
If they are for you...
The notes in presenter mode aren't just to remind you of your script, they can also be very helpful to others who find your slides online!
How can you view the presenter notes and share your screen at the same time?
The notes don't have to be just for you!
If they are for you...
Present from the private browser window without moon reader
Clone the slides into a new window with C
Pick the full browser or the cloned window to share
Press P in the other window
The notes in presenter mode aren't just to remind you of your script, they can also be very helpful to others who find your slides online!
How can you view the presenter notes and share your screen at the same time?
Don't try to present from inside RStudio. Instead, use a private browser window, either from the slides shared online or using the knit button.
Clone the slides into a new window and then choose either the small window or the full browser to share. If you want people to only see the slides, share the cloned window. If you want to share browser tabs, use the full browser. Press
The greatest hard thing about xaringan.
library(dplyr)library(ggplot2)lemurs <- readRDS("lemurs.rds")lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )
library(dplyr)library(ggplot2)lemurs <- readRDS("lemurs.rds")lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )
How can we
show the code
and the plot
separately?
```{r lemur-weight}# any R code ...```
```{r lemur-weight, eval=FALSE}# any R code ...```
```{r lemur-weight, eval=FALSE}# any R code ...```---```{r ref.label="lemur-weight", echo=FALSE}```
```{r lemur-weight}# plotting R code ...```
```{r lemur-weight}# plotting R code ...```
```{r lemur-weight, fig.show="hide"}# plotting R code ...````)
```{r lemur-weight, fig.show="hide"}# plotting R code ...```---`)
```{r lemur-weight, fig.show="hide"}# plotting R code ...```---background-image: url(`r knitr::fig_chunk("lemur-weight", "png")`)background-size: cover
Add tabbed panels to slides with panelset
Add an overview of your presentation with tile view
Make your slides editable
Scribble on your slides during your presentation with scribble
Share your slides in style with share again
library(remotes)install_github("gadenbuie/xaringanExtra")
library(remotes)install_github("gadenbuie/xaringanExtra")
```{r xaringanExtra, echo=FALSE}library(xaringanExtra)use_xaringan_extra( c("tile_view", "panelset", "share_again", "editable"))use_scribble( pen_color = "#d33f49", pen_size = 4, palette = c("#d33f49", "#466683", "#338d70", "#c0af3f", "#ff6300"))```
.panelset[]
.panelset[.panel[]]
.panelset[.panel[This content will show up in panel 1!]]
.panelset[.panel[.panel-name[First panel]This content will show up in panel 1!]]
.panelset[.panel[.panel-name[First panel]This content will show up in panel 1!].panel[.panel-name[Second panel]This content will show up in the **second panel**!]]
This content will show up in panel 1!
This content will show up in the second panel!
```{r lemur-weight}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```
.panelset[```{r lemur-weight}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```]
.panelset[```{r lemur-weight, panelset = TRUE}lemurs %>% filter( common_name == "Ring-Tailed Lemur", between(age_at_wt_y, 1, 5) ) %>% ggplot() + aes(x = age_at_wt_y, y = weight) + geom_point() + labs( x = "Age at Weight", y = "Weight (g)", title = "Weight Gain of Young Ring-Tailed Lemurs" )```]
Practice controlling code output and using panelsets.