Files
shiny/man/sidebarPanel.Rd
2012-07-29 04:40:57 -07:00

28 lines
627 B
R

\name{sidebarPanel}
\alias{sidebarPanel}
\title{Create a sidebar panel}
\usage{
sidebarPanel(...)
}
\arguments{
\item{...}{UI elements to include on the sidebar}
}
\value{
A sidebar that can be passed to \link{pageWithSidebar}
}
\description{
Create a sidebar panel containing input controls that can
in turn be passed to \link{pageWithSidebar}.
}
\examples{
# Sidebar with controls to select a dataset and specify
# the number of observations to view
sidebarPanel(
selectInput("dataset", "Choose a dataset:",
choices = c("rock", "pressure", "cars")),
numericInput("obs", "Observations:", 10)
)
}