marsSavePlot: Wrapper function for ggsave that ensures text appears...

View source: R/mars_plotting_functions.R

marsSavePlotR Documentation

Wrapper function for ggsave that ensures text appears correctly for saved images of pwdgsi plots

Description

Return the gpglot object, with the metrics added to the object as a tableGrob annotation

Usage

marsSavePlot(
  in_plot = last_plot(),
  plot_type,
  filename,
  resolution = "med",
  ...
)

Arguments

in_plot

ggplot object without annotative metrics table

plot_type

text, one of 'combined', 'level', or 'rain' to determine the dimensions to use

filename

text, file location to save the document refer to ggsave

resolution

text, one of 'low', 'med', or 'high'. Each consists of default options that can be overwritten with ggsave arguments.

...

overwrite assumed values of resolution. Accepts existing arguments to ggsave, see ggsave (optional)

Value

Output ggplot object adding metrics when necessary


taywater/pwdgsi documentation built on April 19, 2024, 11:10 a.m.