save_png.RdFunction that generates a figure and saves it as a PNG file using common settings.
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).
An integer value, the point size of text (see grDevices::png).
a character string, the background color (see grDevices::png).
A character string specifying the font family (see grDevices::png).
A character string governing how plotting is done (see grDevices::png).
A character stringth for cairographics options (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.