save_png | R Documentation |
Function that generates a figure and saves as a PNG file using common settings.
save_png(
file_name,
fun_plot,
dmn = c(5, 5),
units = "in",
res = 300,
return_file_name = FALSE,
...
)
file_name |
A character string, the desired path to the PNG file. |
fun_plot |
A function that generates a figure as output. |
dmn |
A numeric vector of two values, the width and height of the figure to save (default is in inches). |
units |
A character string, the units for figure dimensions (see grDevices::png). |
res |
An integer value, the figure resolution (see grDevices::png). |
return_file_name |
A logical value,
if |
... |
Additional arguments for the
|
A PNG file, and optionally the file name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.