3.1 Introducción
3.1.1 Instalación
El primer paso consiste en desde R instalar el paquete revealjs
que contiene los formatos necesarios para construir las diapositivas.
install.packages("revealjs")
3.1.2 Ejemplo rápido
Para crear una presentación de reveal.js desde R Markdown, especifique el formato de salida de revealjs_presentation
en el YAML de su documento. Puede crear una presentación de diapositivas dividida en secciones utilizando las etiquetas de encabezado # y ##. También puede crear una nueva diapositiva sin un encabezado usando una regla horizontal (—-). Por ejemplo, aquí hay una presentación de diapositivas simple:
---
title: "Presentación Rápida"
subtitle: "con reveal.js"
author:
- Diego Sandoval
- Otro autor
date: "(actualizado: `r format(Sys.time(), '%d %B %Y')`)"
output: revealjs::revealjs_presentation
---
# In the morning
## Getting up
- Turn off alarm
- Get out of bed
## Breakfast
- Eat eggs
- Drink coffee
# In the evening
## Dinner
- Eat spaghetti
- Drink wine
## Going to sleep
- Get in bed
- Count sheep
# Other
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Code and Output
` ```{r}
summary(cars)` `
``
## Slide with Plot
` ```{r, echo=FALSE}
plot(cars)` ` ``