Multiple plots on a storyboard page ?

I would like to have multiple plots on a storyboard page. Here an example with two plots.

---
title: "Storyboard with multiple plots"
output: 
  flexdashboard::flex_dashboard:
    storyboard: true
---

### Two Plots

You should see two plots.

Plot1: wt, hp

```{r}
plotDf <- mtcars[,c("wt","hp")]
plot(plotDf)```


Plot2: mpg, disp

```{r}
plotDf <- mtcars[,c("mpg","disp")]
plot(plotDf)```

However only the first plot is shown. Moreover also the text after the first plot is put before the first plot.

Has anybody an idea how to get two plots onto on page?

I don't know why but if you use subsections the two plots are shown

---
title: "Storyboard with multiple plots"
output: 
  flexdashboard::flex_dashboard:
    storyboard: true
---

### Two Plots

You should see two plots.

#### Plot1: wt, hp

```{r}
plotDf <- mtcars[,c("wt","hp")]
plot(plotDf)
```

#### Plot2: mpg, disp

```{r}
plotDf <- mtcars[,c("mpg","disp")]
plot(plotDf)
```

Thanks @andresrcs, using subsections is a working workaround.
But it would be nice if someone could explain this behaviour.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.