ggsave2: A modified ggsave function

Description Usage Arguments Value Author(s) Examples

View source: R/package_functions.R

Description

Redefined ggsave function from ggplot2 allowing to combine a list of ggplot items into a single pdf output. This function is used in the save function defined in this package.

Usage

1
2
3
ggsave2(filename, plot = last_plot(), device = NULL, path = NULL,
  combine = F, scale = 1, width = NA, height = NA,
  units = c("in", "cm", "mm"), dpi = 300, limitsize = TRUE, ...)

Arguments

filename

File name to create on disk.

plot

Plot or plots (in a list) to save, defaults to last plot displayed.

device

Device to use. Can be either be a device function (e.g. png), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).

path

Path to save plot to (combined with filename).

combine

Boolean (T, F) indicator of whether or not to combine the output from a list of ggplot items passed in plot to a single pdf.

...

Other arguments passed on to graphics device.

Value

No return value

Author(s)

Alex Hubbard (hubbard.alex@gmail.com)

Examples

1
See ggplot2 package for examples.

opendoor-labs/projectmap documentation built on Oct. 8, 2019, 1:58 p.m.