I am trying to use multiple controls tabPanelin tabsetPanelin Shiny. Suppose I start with one tab using the following code:
mainPanel(
tabsetPanel(
tabPanel("Plot",plotOutput("distPlot"))
)
The code works fine and displays a graph on the tab.
But at the moment when I entered another tab only for checking tabs, both tabs stop displaying any graphs. I am using the following code:
mainPanel(
tabsetPanel(
tabPanel("Plot",plotOutput("distPlot")),
tabPanel("Plot",plotOutput("distPlot"))
)
Note that I am trying to display the same graph on both tabs to check if the tabs are working. All I get is two empty tabs (if I use only one tab, the graph displays correctly).
Will anyone help me figure this out?