rstudio / rstudio/flexdashboard
Multiple graphs and data tables in the sabe page on flexdashboard
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 848
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Description
I need to create plots and data tables in a single tabset in flexdashboard, so I made a different chunk for each output (graph or table). But the outputs doesn't appear with an vertical scroll as I expected, even when using vertical_layout: scroll. The outputs seems to have the right height, but I can't see all of them in the page. My code looks like this:
---
title: "dashboard"
output:
flexdashboard::flex_dashboard:
orientation: rows
runtime: shiny
---
Column {.tabset}
----------------
### Report
#### Graph 1
```{r}
renderPlot({
# my plot code using ggplot()
), width = "auto", height = 600}
#### Graph 2
```{r}
renderPlot({
# my plot code using ggplot()
), width = "auto", height = 600}
#### Table 1
```{r}
renderDataTable({
# my table code using DT::datatable()
), , width = "auto", height = 600, filter = "top"
How can I make a scroll layout so all my outputs appear on that tab?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal flexdashboard example in the issue, focusing on the tabset, vertical_layout: scroll, and the Shiny plot and table outputs. Compare this setup with the flexdashboard documentation or examples for scrolling tabsets, then verify that all three outputs are visible and scrollable on the Report tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100