R/my_ggsave.R

Defines functions myggsave

Documented in myggsave

#' myggsave sauvegarde les ggplot avec une hauteur et largeur par défaut..
#'
#' @param filename
#' @param plot
#' @param height
#' @param width
#' @param dpi
#' @param ...
#'
#' @return
#' @export
#' @importFrom ggplot2 ggsave last_plot
#'
#' @examples
myggsave <- function(filename = default_name(plot), plot = last_plot(),
                     height = 9, width = 12, dpi = 250, ...) {
  ggsave(filename = filename, plot, height = height, width = width, dpi = dpi, ...)
}
SimonCoulombe/covidtwitterbot documentation built on May 1, 2021, 6:50 a.m.