R Flexdashboard multiple plots on single tab

Multi tool use
R Flexdashboard multiple plots on single tab
I'm trying to put multiple dygraph plots on a single tab of a flexdashboard. I've tried a bunch of different options from here and from here
My RMD file looks like this:
---
title: "Project Dashboard"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: scroll
---
# Intro {.sidebar}
# Page 1
## Column 1 {.tabset .tabset-fade data-width=850}
### Site 1
```{r Data, echo=FALSE, fig.height=2}
s <- dygraph(as.xts(df,order.by=df$DateTime), group = "NC") %>%
dyOptions(drawPoints = TRUE, pointSize = 1) %>%
dyAxis("y", label = "Salinity (PSU)", valueRange = c(16, 30)) %>%
dyRangeSelector(height = 20) %>%
dyLegend(width = 400)
t <- dygraph(as.xts(df,order.by=df$DateTime), group = "NC") %>%
dyOptions(drawPoints = TRUE, pointSize = 1) %>%
dyAxis("y", label = "Temperature (°C)", valueRange = c(0, 30)) %>%
dyRangeSelector(height = 20) %>%
dyLegend(show = "follow", width = 400)
dy_graph <- list(s,t)
pt <- htmltools::browsable(htmltools::tagList(dy_graph))
pt
```
I've tried a variety of other combinations but it either just plots the first plot, puts the two plots on top of each other, or squishes them together into a tiny space. I even tried using a 4th-level markdown header (####), but that doesn't seem to do anything either.
Any thoughts?
So is this just not possible? I've been tantalizingly close but no luck
– DarwinsBeard
Jul 4 at 0:37
You can put multiple code chunks within the same h3 block, though controlling the size and arrangement is a little tricky, as it's all subject to the flexbox layout. The layout page covers the basic possibilities short of hijinks.
– alistaire
Jul 4 at 2:57
Thanks alistaire, I looked through the layout page but I don't think it covers what I'm trying to do so I think the "hijinks" method is what I need. What's strange is that I can get the two plots to output together in the rmd output using htmltools, browsable, taglist, but for some reason when it's knit to html it doesn't work as expected.
– DarwinsBeard
Jul 4 at 16:47
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
That looks like an R file, not an RMarkdown file, which should have code chunks.
– alistaire
Jul 2 at 0:32