ggsave: Editted ggsave2 from cowplot function.

View source: R/ggplot_functions.R

ggsaveR Documentation

Editted ggsave2 from cowplot function.

Description

Edit of ggplot save (actually the cowplot implementation ggsave2) that includes some sensible defaults, defaults units to mm, and uses ImageMagick to trim whitespace from an exported png.

Usage

ggsave(
  filename,
  plot = ggplot2::last_plot(),
  device = NULL,
  path = NULL,
  scale = 1,
  width = NA,
  height = NA,
  units = c("mm"),
  dpi = 600,
  limitsize = TRUE,
  border = 50,
  ...
)

JackAHutchings/jahrfun documentation built on June 8, 2025, 3:09 a.m.