ggsaver: Helpful defaults for saving ggplot plots

Description Usage Arguments

Description

This is a wrapper around ggplot2::ggsave() which allows one to easily save plots to the commonly used paper sizes of the ISO 216 A standard. "A4" is the default but the full range - "A0" to "A10" - can be specified.

Usage

1
2
ggsaver(filename, plot = last_plot(), path = NULL, page_size = "A4",
  portrait = FALSE, dpi = 300)

Arguments

filename

File name to create on disk.

plot

Plot to save, defaults to last plot displayed.

path

Path to save plot to (combined with filename).

page_size

Page size to use. Must be one of "A0" through to "A10".

portrait

The orientation of the page.

dpi

Plot resolution.


liam-c-smith/secretsauce documentation built on May 16, 2019, 7:16 p.m.