R/save_graph.R

Defines functions savegraph

Documented in savegraph

#' Save graph
#'
#' @param filename filename
#' @param h height
#' @param w width
#' @keywords save a graph in dimensions that are perfect for Powerpoint
#' @export


savegraph <- function(filename, h=1, w=1) ggsave(filename = paste0(filename,".png"), height = 4.76*h, width = 11.5*w, units = "in", dpi = 300)
samuelfranssens/rlibrary documentation built on Nov. 30, 2021, 2:46 a.m.