Presentations with RStudio

Josh Paulson and JJ Allaire
11 July 2013

useR 2013 - UCLM, Albacete, Spain

What are R Presentations?

  • An easy way to create HTML5 presentations
    using R Markdown
    • Good for presentations that incorporate
      code, plots, and math.
    • Not as good for presentations that require
      highly customized layout and appearance

What are R Presentations?

  • Extensive support for authoring and previewing presentations within the RStudio IDE
  • Can be played back either inside the RStudio IDE or as standalone HTML5 presentations in a web browser.

alt text

Feature Highlights

  • Easy incorporation of R code and it's output
  • Support for LaTeX equations using MathJax
  • Flexible two column layouts
  • Many options for slide transitions and slide navigation
  • Ability to customize the appearance of slides using CSS

Demo: Presentation Authoring

alt text

Demo: Show Preview & Getting Help

alt text

Demo: Inserting Code Chunks

alt text

Demo: Exporting and Sharing

alt text

Slide Basics

Title Slide
===================
author: John Doe
date: Feb 7th, 2013



alt text

Slide w/ Bullets
===================

- Bullet 1
- Bullet 2
- Bullet 3

alt text

R Code Chunks

Slide with Code
===================

```{r}
summary(cars)
```

alt text

Code w/o Evaluation
===================

```{r, eval=FALSE}
summary(cars)
```

alt text

R Code Chunks (Output Only)

Output Only Slide
===================

```{r, echo=FALSE}
summary(cars)
```

alt text

Plot Slide
===================

```{r, echo=FALSE}
plot(cars)
```

alt text

Two Column Layouts

Slide with Columns
===================

First column

***

Second column

alt text

Slide with Columns
===================
left: 70%

First column

***

Second column

alt text

Additional Features

  • Several transition types (linear, rotate, fade, zoom, concave)
  • Incremental display of bullets (or other slide elements)
  • Slide-to-slide links
  • Override default fonts and formatting via CSS

Displaying and Publishing Presentations

  • Playback inside the RStudio IDE
    • Use zoom to toggle full window view
  • Standalone HTML5 presentations in a web browser
  • Publish to RPubs

Questions?

Thank You!

Download the v0.98 preview release at:

http://www.rstudio.com/ide/download/preview

Slides for this talk will be are at:

http://rpubs.com/Josh/RPresentationsPreview