I am trying to use multiple tabPanel
controls within the tabsetPanel
in Shiny
. Lets say I start with only one tab using the following code:
mainPanel(
tabsetPanel(
tabPanel("Plot",plotOutput("distPlot"))
)
The code runs fine and displays the plot in the tab.
But the moment I introduce another tab just to test the tabs out, both the tabs stop displaying any plots at all. I am using the following code:
mainPanel(
tabsetPanel(
tabPanel("Plot",plotOutput("distPlot")),
tabPanel("Plot",plotOutput("distPlot"))
)
Please note that I am trying to display the same plot in both tabs just to test if the tabs work. All I get are two blank tabs (if I use only one tab, the plot displays properly).
Would someone please be able to help me figure this out?