shiny (version 0.2.4)

tabsetPanel: Create a tabset panel

Description

Create a tabset that contains tabPanel elements. Tabsets are useful for dividing output into multiple independently viewable sections.

Usage

tabsetPanel(..., id = NULL)

Arguments

...
tabPanel elements to include in the tabset
id
If provided, you can use input$id in your server logic to determine which of the current tabs is active. The value will correspond to the value argument that is passed to

Value

Examples

Run this code
# 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"))
  )
)

Run the code above in your browser using DataCamp Workspace