mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-29 08:48:13 -05:00
25 lines
501 B
R
25 lines
501 B
R
\name{mainPanel}
|
|
\alias{mainPanel}
|
|
\title{Create a main panel}
|
|
\usage{
|
|
mainPanel(...)
|
|
}
|
|
\arguments{
|
|
\item{...}{Ouput elements to include in the main panel}
|
|
}
|
|
\value{
|
|
A main panel that can be passed to \link{pageWithSidebar}
|
|
}
|
|
\description{
|
|
Create a main panel containing output elements that can
|
|
in turn be passed to \link{pageWithSidebar}.
|
|
}
|
|
\examples{
|
|
# Show the caption and plot of the requested variable against mpg
|
|
mainPanel(
|
|
h3(textOutput("caption")),
|
|
plotOutput("mpgPlot")
|
|
)
|
|
}
|
|
|