22 April 2024


R Markdown

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.

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.

Beamer Presentation Template

This template has the same features as others in the memoiR package except for multi-language support (no lang item in the header).

See the code of the following slides for some specific code of slides.

Advanced code

Slide with Incremental Bullets

Incremental bullets start with > - instead of -:

  • Bullet 1
  • A reference: Xie (2016).
  • Bullet 3

Slide with R Output

R code chunks are displayed as follows:

##   speed dist
## 1     4    2
## 2     4   10
## 3     7    4
## 4     7   22
## 5     8   16
## 6     9   10

Slide with a Centered Plot

Two Column Layout

This slide has two columns.

In Beamer, each column in between \begincol and \endcol.

In HTML, the {.columns-2} option is added to the slide title and <p class="forceBreak"></p> allows forcing column break.


See R Markdown: The Definitive Guide for full documentation about HTML slides.


  • {.flexbox .vcenter} to center the HTML slide with plot.
  • out.width='90%' to reduce the size of the plot in the Two Column Layout slide.

Keep the code below to have a slide for references, allow two-column slides in ioslides (but not in Slidy) and allow scrolling oversized slides.


Xie, Yihui. 2016. Bookdown: Authoring Books and Technical Documents with R Markdown. Boca Raton, Florida: Chapman; Hall/CRC. https://github.com/rstudio/bookdown.