0
```{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()

```             

複数のグラフを 1 つのスライド (R Markdown Ioslides) に追加したいと考えています。

ToC (R Markdown Ioslides) も作成したいと思います。

何か助けてください。

どうもありがとうございました

4

1 に答える 1

1

多分これはあなたの最初の質問に関して役立ちます:

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

ここに画像の説明を入力

2番目の質問に関するオプションはありません。

于 2016-12-22T20:41:53.307 に答える