tabsetPanel {shiny} | R Documentation |
Create a tabset that contains tabPanel
elements. Tabsets are
useful for dividing output into multiple independently viewable sections.
tabsetPanel(..., id = NULL, selected = NULL, type = c("tabs", "pills"), position = c("above", "below", "left", "right"))
... |
|
id |
If provided, you can use |
selected |
The |
type |
Use "tabs" for the standard look; Use "pills" for a more plain look where tabs are selected using a background fill color. |
position |
The position of the tabs relative to the content. Valid
values are "above", "below", "left", and "right" (defaults to "above").
Note that the |
A tabset that can be passed to mainPanel
# Show a tabset that includes a plot, summary, and # table view of the generated distribution mainPanel( tabsetPanel( tabPanel("Plot", plotOutput("plot")), tabPanel("Summary", verbatimTextOutput("summary")), tabPanel("Table", tableOutput("table")) ) )