Files
shiny/man/plotOutput.Rd
2013-01-23 09:42:08 -06:00

30 lines
671 B
R

\name{plotOutput}
\alias{plotOutput}
\title{Create a plot output element}
\usage{
plotOutput(outputId, width = "100\%", height = "400px")
}
\arguments{
\item{outputId}{output variable to read the plot from}
\item{width}{Plot width. Must be a valid CSS unit (like
\code{"100\%"}, \code{"400px"}, \code{"auto"}) or a
number, which will be coerced to a string and have
\code{"px"} appended.}
\item{height}{Plot height}
}
\value{
A plot output element that can be included in a panel
}
\description{
Render a \link{reactivePlot} within an application page.
}
\examples{
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot")
)
}