Description Usage Arguments Value See Also Examples
Converts object to PNG. By default, device is scaled by plot size. Device is automatically closed and filename argument is returned.
1 2 3 4 5 6 | ## Default S3 method:
as.png(x, width = getOption("plotscale_png_width", 3),
height = getOption("plotscale_png_height", 3), devsize = if (scaled)
"devsize" else "unscaled", res = getOption("plotscale_res", 300),
units = "in", scaled = getOption("plotscale_scaled", TRUE),
filename = "Rplot%03d.png", ...)
|
x |
object |
width |
desired plot width |
height |
desired plot height |
devsize |
a function of x, width, height, and ... that calculates device size |
res |
passed to |
units |
NOT passed to |
scaled |
whether to rescale width and height by plot size |
filename |
file name passed to |
... |
other arguments to |
(invisible) the filename argument
Other as.png: as.png
Other devices: as.pdf.default
,
as.pdf
, as.png
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.