save_plot: Save ggplots with options

Description Usage Arguments

View source: R/themes.R

Description

Save ggplots with options

Usage

1
2
save_plot(filename, plot, saveplots = NULL, width = 180,
  height = 180, units = "mm", dpi = 300, ...)

Arguments

filename

A file path/name wrapped in here::here() before being passed to ggsave()

plot

Plot to save, defaults to last plot displayed.

saveplots

A logical indicating whether to save the plot. Can be overridden by a global variable named global_saveplots.

width

Defaults to 180 mm

height

Defaults to 180 mm

units

Defaults to "mm"

dpi

Defaults to 300

...

Other arguments passed on to the graphics device function, as specified by device.


ricompute/ricomisc documentation built on May 24, 2019, 6:18 a.m.