mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-29 08:48:13 -05:00
30 lines
671 B
R
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")
|
|
)
|
|
}
|
|
|