output
slot.renderPlot(expr, width = "auto", height = "auto", ...,
env = parent.frame(), quoted = FALSE, func = NULL)
'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 '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 thpng
. These can be used to set
the width, height, background color, etc.expr
.expr
a quoted expression (with
quote()
)? This is useful if you want to save an
expression in a variable.expr
instead).div
or
img
and have the CSS class name
shiny-plot-output
. For output, it will try to use the following devices, in
this order: quartz (via png
),
then CairoPNG
, and finally
png
. This is in order of quality
of output. Notably, plain png
output on Linux and
Windows may not antialias some point shapes, resulting in
poor quality output.