Learn R Programming

shiny (version 0.8.0)

mainPanel: Create a main panel

Description

Create a main panel containing output elements that can in turn be passed to pageWithSidebar.

Usage

mainPanel(...)

Arguments

...
Ouput elements to include in the main panel

Value

Examples

Run this code
# Show the caption and plot of the requested variable against mpg
mainPanel(
   h3(textOutput("caption")),
   plotOutput("mpgPlot")
)

Run the code above in your browser using DataLab