Description Usage Arguments Details
This function returns the name of the PNG file that it generates. In
essence, it calls png()
, then func()
, then dev.off()
.
So func
must be a function that will generate a plot when used this
way.
1 2 |
func |
A function that generates a plot. |
filename |
The name of the output file. Defaults to a temp file with
extension |
width |
Width in pixels. |
height |
Height in pixels. |
res |
Resolution in pixels per inch. This value is passed to
|
... |
Arguments to be passed through to |
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.
In some cases, Cairo()
provides output that looks worse than
png()
. To disable Cairo output for an app, use
options(shiny.usecairo=FALSE)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.