Save plot as PNG
save_png(
plot,
folder,
fileBaseName,
width,
height,
dpi = 300,
background = c("white", "transparent"),
...
)
A plot object that can be printed, e.g. result of ggplot2, plot_grid
Destination folder (will be created if it does not exist)
File base name (suffix ".png" will be added)
PNG width and height in inches or as grid::unit
.
If missing and the plot object has a "papersize" attribute c(width, height), this will be used.
Resolution (determines file size in pixels, as size is given in inches)
Initial background color, "white" or "transparent"
Further arguments which will be passed to png
, e.g. family
invisible NULL