- File > New File > R Markdown > Presentation
- Four built-in presentation format: ioslides, Slidy, Beamer and Powerpoint.
May 02 2022
#
#
for the main topic page.##
|
after Header 2Header 2 starts with `##` | subtitle after the pipe character `|` after Header 2
##
to create pages under the header 1 #
topic.summary(cars)
## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:12.0 1st Qu.: 26.00 ## Median :15.0 Median : 36.00 ## Mean :15.4 Mean : 42.98 ## 3rd Qu.:19.0 3rd Qu.: 56.00 ## Max. :25.0 Max. :120.00
plot(cars)
Use ----
to create a new slide without a header.
plot(cars)
f: enable fullscreen mode
w: toggle widescreen mode
o: enable overview mode
h: enable code highlight mode
p: show presenter notes
Add presenter notes to a slide
<div class="notes"> This is my *note*. - It can contain markdown - like this list </div>
incremental: true
--- output: ioslides_presentation: incremental: true ---
>-
instead of -
.> - Eat eggs > - Drink coffee
widescreen: true
smaller: true
.--- output: ioslides_presentation: widescreen: true smaller: true ---
## Smaller Text {.smaller}
Transition Speed {.build}
so the slide content is displayed incrementally.transition: faster
for example.--- output: ioslides_presentation: transition: faster ---
data-background
, data-background-size
, data-background-position
, and data-background-repeat
after the slides header## Background Image {data-background=./img/cloud.png data-background-size=cover}
### <b>
code to be highlighted ### </b>
h
key and the rest of the code will fade away.x <- 10 y <- x * 2 z <- 20 a <- 32
logo: ./img/mu_white.png
First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell
First Header | Second Header |
---|---|
Content Cell | Content Cell |
Content Cell | Content Cell |
You can center content on a slide by adding the .flexbox
and .vcenter
attributes to the slide title like ## Center Content {.flexbox .vcenter}
<div class="centered"> This text is centered. </div>
This text is centered.
<div class="columns-2"> { width=50% } - MATH 3570 - COSC 3570 - Dr. Yu is a R programming and data science expert! </div>
I Love Marquette
You can color content using base color classes red, blue, green, yellow, and gray (or variations of them, e.g., red2, red3, blue2, blue3, etc.).
<div class="red2"> This text is red2 </div>
This text is red2