Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get vertical slides using Rpres markdown

I'm using R markdown in a Rpres file, in RStudio.

I understand that this is using reveal.js, which can do vertical slides.

What markdown do I need to type to get it to create a vertical slide? All my attempts so far (--, ---, type:subsection) still result in a simple set of horizontal slides and only left right navigation

like image 569
Corvus Avatar asked Apr 09 '14 14:04

Corvus


People also ask

How do I make a slideshow in R?

To create a new R Presentation you execute the New File -> R Presentation command: After specifying the location to save the presentation, a new presentation will be created and a preview will show within the Presentation tab in the upper right corner of the IDE.

What is Slidy?

(informal) Tending to slide or cause sliding; slippery.


1 Answers

Ok, this is a bit old at this point, but for the sake of completeness:

If you install the revealjs package:

library(devtools)
install_github("jjallaire/revealjs")
# or "srvanderplas/revealjs" if you want slide numbers by default

and use

title: "Awesome revealjs presentation"
author: "Your name"
output: 
  revealjs::revealjs_presentation:
    pandoc_args: [ "--slide-level", "2" ]

in your preamble

then H1 (# in markdown) will make a new top-level slide, and H2 (## in markdown) will make a new vertical slide under a top-level slide.

like image 177
srvanderplas Avatar answered Sep 23 '22 01:09

srvanderplas