Save Figures a PNGs

save_figure(fig, name, path = NULL)

Arguments

fig

ggplot2 object.

name

A character string giving the name for the figure

path

Character string giving the folder path

Value

Nothing returned

Examples

## Code save_figure
#> function (fig, name, path = NULL) #> { #> path <- file.path(path, paste0(name, ".png")) #> ggplot2::ggsave(path, fig, dpi = 320, width = 8, height = 8) #> invisible() #> } #> <bytecode: 0x5563099863b0> #> <environment: namespace:ETSMissing>