R Ioslides Table Of Content and multiple charts in one slide

1.3k views Asked by At
```{r, fig.width=8,fig.height=4}

ggplot(cer12, aes(reorder(Ciudad,-Impactos), Impactos, fill = Marca)) + geom_bar(stat="identity") + theme_minimal() 

ggplot(cer13, aes(reorder(Ciudad,-Impactos), Impactos, fill = Marca)) + geom_bar(stat="identity") + theme_minimal()

ggplot(cer14, aes(reorder(Ciudad,-Impactos), Impactos, fill = Marca)) + geom_bar(stat="identity") + theme_minimal()

ggplot(cer15, aes(reorder(Ciudad,-Impactos), Impactos, fill = Marca)) + geom_bar(stat="identity") + theme_minimal()

```             

I would like to add several charts into one slide (R Markdown Ioslides).

I would also like to create a ToC (R Markdown Ioslides).

Any help please?

Thank you very much

1

There are 1 answers

1
lukeA On

Maybe this helps with regards to your first question:

---
output: ioslides_presentation
---
# And now...

## ... Combined plots

```{r fig.height=2}
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg))
gridExtra::grid.arrange(
  p + geom_point(),
  p + geom_point(aes(colour = factor(cyl))),
  p + geom_point(aes(shape = factor(cyl))),
  p + geom_point(aes(size = qsec))
)
```

enter image description here

I do not see any options regarding the 2nd question.