flexdashboard故事板布局中的Tabset面板

时间:2018-05-08 18:31:16

标签: r shiny storyboard plotly flexdashboard

我正在尝试在带有故事板布局的flexdashboard文档中的标签式html小部件中包含ploly图。第一个图的自动调整很好,但不在任何后续选项卡上。这是一个MRE,

---
title: "MRE"
output: 
  flexdashboard::flex_dashboard:
    storyboard: true
---

```{r setup, include=FALSE}
library(flexdashboard)
library(plotly)
library(shiny)
```


### Test

```{r}
plot1 = plot_ly(x = 1:5, y = 6:10, type = "scatter")
plot2 = plot_ly(x = 1:5, y = 1:5, type = "scatter")
tabsetPanel(
    tabPanel("Employee Monthly", plot1),
    tabPanel("Employee Weekly", plot2)
  )
```

0 个答案:

没有答案