save_png.Rd
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,
...
)
A character string, the desired path to the PNG file.
A function that generates a figure as output.
A numeric vector of two values, the width and height of the figure to save (default is in inches).
A character string, the units for figure dimensions (see grDevices::png).
An integer value, the figure resolution (see grDevices::png).
A logical value,
if TRUE
returns the file name
as a character string.
Additional arguments for the
fun_plot
function.
A PNG file, and optionally the file name.