save_png | R Documentation |
Save plot as PNG
save_png( plot, folder, fileBaseName, width, height, dpi = 300, background = c("white", "transparent"), ... )
plot |
A plot object that can be printed, e.g. result of ggplot2, plot_grid |
folder |
Destination folder (will be created if it does not exist) |
fileBaseName |
File base name (suffix ".png" will be added) |
width, height |
PNG width and height in inches or as |
dpi |
Resolution (determines file size in pixels, as size is given in inches) |
background |
Initial background color, "white" or "transparent" |
... |
Further arguments which will be passed to |
invisible NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.