shiny (version 0.2.3)

reactivePlot: Plot Output

Description

Creates a reactive plot that is suitable for assigning to an output slot.

Usage

reactivePlot(func, width = "auto", height = "auto", ...)

Arguments

func
A function that generates a plot.
width
The width of the rendered plot, in pixels; or 'auto' to use the offsetWidth of the HTML element that is bound to this plot. You can also pass in a function that returns the width in pixels or 'auto'; in the
height
The height of the rendered plot, in pixels; or 'auto' to use the offsetHeight of the HTML element that is bound to this plot. You can also pass in a function that returns the width in pixels or 'auto'; in th
...
Arguments to be passed through to png. These can be used to set the width, height, background color, etc.

Details

The corresponding HTML output tag should be div or img and have the CSS class name shiny-plot-output.