save_png_figure.RdFunction to create and save a PNG file given a plotting function to run.
save_png_figure(plotting_fun, file_name, figure_dim = c(5, 5), res = 300, ...)A function, with the creation of a figure as a side effect.
A character string, the file name for the PNG file - must end in '.png'.
A numeric vector of two values, the width and height of the figure in inches.
A integer value, the resolution for the PNG file.
Additional arguments to pass to
plotting_fun.
Output from plotting_fun, if any.