mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-30 01:08:43 -05:00
20 lines
516 B
R
20 lines
516 B
R
\name{reactivePlot}
|
|
\alias{reactivePlot}
|
|
\title{Creates a reactive plot that is suitable for assigning to an \code{output}
|
|
slot.}
|
|
\usage{
|
|
reactivePlot(func, ...)
|
|
}
|
|
\arguments{
|
|
\item{func}{A function that generates a plot.}
|
|
|
|
\item{...}{Arguments to be passed through to
|
|
\code{\link[grDevices]{png}}. These can be used to set
|
|
the width, height, background color, etc.}
|
|
}
|
|
\description{
|
|
The corresponding HTML output tag should be \code{div} or
|
|
\code{img} and have the CSS class name \code{live-plot}.
|
|
}
|
|
|