简体   繁体   中英

R Ioslides Table Of Content and multiple charts in one slide

```{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

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))
)
```

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM