xaringan package to be a Presentation Ninja ðĪš
"for creating slideshows with remark.js through R Markdown"
library(palmerpenguins) # to access penguin datalibrary(xaringan)library(xaringanthemer)library(xaringanExtra)









Inifinite Moon Reader only to start the slideshow. To see the changes made in the slides just save the document ctrl + screate a new slide
hide an existing slide
create a new slide
hide an existing slide
heading, subheadings, points and normal text
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
in-text R output
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
in-text R output
create columns
--- to create a new slideUse --- to create a new slide
exclude:true To hide an existing slide
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main headingUse --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
* for sub-point1* for sub-point2* for sub-point3Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
* for sub-point1* for sub-point2* for sub-point3- for normal text sizebackground option:background option:background-image: url("path of the image") = path of the imagebackground option:background-image: url("path of the image") = path of the image
background-size: contain, cover, 50%, 70% = size of the image
background option:background-image: url("path of the image") = path of the image
background-size: contain, cover, 50%, 70% = size of the image
background-position: left top = position of the image
knitr chunk option:knitr::include_graphics("path of the image")library(palmerpenguins)ggplot(penguins, aes(x = species)) + geom_bar()library(kableExtra)library(tidyverse)penguins %>% drop_na() %>% head() %>% kable()
| species | island | bill_length_mm | bill_depth_mm | flipper_length_mm | body_mass_g | sex | year |
|---|---|---|---|---|---|---|---|
| Adelie | Torgersen | 39.1 | 18.7 | 181 | 3750 | male | 2007 |
| Adelie | Torgersen | 39.5 | 17.4 | 186 | 3800 | female | 2007 |
| Adelie | Torgersen | 40.3 | 18.0 | 195 | 3250 | female | 2007 |
| Adelie | Torgersen | 36.7 | 19.3 | 193 | 3450 | female | 2007 |
| Adelie | Torgersen | 39.3 | 20.6 | 190 | 3650 | male | 2007 |
| Adelie | Torgersen | 38.9 | 17.8 | 181 | 3625 | female | 2007 |
penguins data have a sample of n = 344 on total 8 variables.
math expressions
a+b=Ïââx22
a
classclassclass can be assigned to each slide
it decides how all elements of one particular slide will look like
classclass can be assigned to each slide
it decides how all elements of one particular slide will look like
class: center
classclass can be assigned to each slide
it decides how all elements of one particular slide will look like
class: center, middle, inverse, right
using R packages like xaringanExtra
learn little about CSS
use cheatsheets
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 |
| Alt + f | Fit Slides to Screen |
| Esc | Back to slideshow |
xaringan package to be a Presentation Ninja ðĪš
"for creating slideshows with remark.js through R Markdown"
library(palmerpenguins) # to access penguin datalibrary(xaringan)library(xaringanthemer)library(xaringanExtra)









Inifinite Moon Reader only to start the slideshow. To see the changes made in the slides just save the document ctrl + screate a new slide
hide an existing slide
create a new slide
hide an existing slide
heading, subheadings, points and normal text
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
in-text R output
create a new slide
hide an existing slide
heading, subheadings, points and normal text
include images
make plots
include tables
in-text R output
create columns
--- to create a new slideUse --- to create a new slide
exclude:true To hide an existing slide
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main headingUse --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
* for sub-point1* for sub-point2* for sub-point3Use --- to create a new slide
exclude:true To hide an existing slide
Slide text sizes:
# for main heading
## for sub-heading
#### for sub-sub-heading
* for sub-point1* for sub-point2* for sub-point3- for normal text sizebackground option:background option:background-image: url("path of the image") = path of the imagebackground option:background-image: url("path of the image") = path of the image
background-size: contain, cover, 50%, 70% = size of the image
background option:background-image: url("path of the image") = path of the image
background-size: contain, cover, 50%, 70% = size of the image
background-position: left top = position of the image
knitr chunk option:knitr::include_graphics("path of the image")library(palmerpenguins)ggplot(penguins, aes(x = species)) + geom_bar()library(kableExtra)library(tidyverse)penguins %>% drop_na() %>% head() %>% kable()
| species | island | bill_length_mm | bill_depth_mm | flipper_length_mm | body_mass_g | sex | year |
|---|---|---|---|---|---|---|---|
| Adelie | Torgersen | 39.1 | 18.7 | 181 | 3750 | male | 2007 |
| Adelie | Torgersen | 39.5 | 17.4 | 186 | 3800 | female | 2007 |
| Adelie | Torgersen | 40.3 | 18.0 | 195 | 3250 | female | 2007 |
| Adelie | Torgersen | 36.7 | 19.3 | 193 | 3450 | female | 2007 |
| Adelie | Torgersen | 39.3 | 20.6 | 190 | 3650 | male | 2007 |
| Adelie | Torgersen | 38.9 | 17.8 | 181 | 3625 | female | 2007 |
penguins data have a sample of n = 344 on total 8 variables.
math expressions
a+b=Ïââx22
a
classclassclass can be assigned to each slide
it decides how all elements of one particular slide will look like
classclass can be assigned to each slide
it decides how all elements of one particular slide will look like
class: center
classclass can be assigned to each slide
it decides how all elements of one particular slide will look like
class: center, middle, inverse, right
using R packages like xaringanExtra
learn little about CSS
use cheatsheets