output_to_png | R Documentation |
Redirect the output of a plot function to a PNG file
output_to_png(
FUN,
args,
filename,
size = unlist(kwb.utils::DIN.A4()),
units = "cm",
res = 300,
...,
dbg = TRUE
)
FUN |
plot function to be called |
args |
list of arguments given to the plot function |
filename |
full path to the PNG file to be written. The extension ".png" will be automatically appended if it is omitted |
size |
vector containing the width (first element) and height (second element)
of the plot, as passed to |
units |
units as passed to |
res |
resolution as passed to |
... |
further arguments passed to |
dbg |
if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.