R/save_plot.R

Defines functions save_plot

Documented in save_plot

#' p is a plot (usually made by ggplot() call)
#' ofile is a string with relative path and name, must end in .png
#' @export
save_plot <- function(p, ofile) {

  png(file = ofile, width = 1536, height = 864)
  print(p)
  dev.off()
}
cbreenmachine/wiscR documentation built on Jan. 26, 2022, 9:10 a.m.