R/save ggplot.R

Defines functions save_CREG

Documented in save_CREG

#' Save ggplot to png file to use in report
#' @examples save_CREG(filename = "figure")
#' @param filename A string
#' @description This function saves the last plot that was displayed, in a png file with the dimensions (16 x 10 cm) for easy processing in Word reports. The document is saved, by default, in the working directory.
#' @export

save_CREG  <- function(filename) {
  ggsave(filename, height = 10, width = 16, units = "cm")
}
nicoschoutteet/CREGR documentation built on Feb. 14, 2022, 12:53 a.m.