R/save_plot.R

Defines functions save_plot

Documented in save_plot

#' Save plot
#' @param x plot object
#' @param file_path character string with file path
save_plot <- function(x, file_path) {
  
  png(filename = file_path)
  print(x)
  dev.off()
  
}
kristian-bak/rumination documentation built on Oct. 31, 2022, 6:44 p.m.