smart_save: Inteligently save plot objects.

Description Usage Arguments Details Methods (by class)

View source: R/smart_save.R

Description

smart_save saves plot objects using different methods depending on class, including support for labeled_plot objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
smart_save(p, ...)

## Default S3 method:
smart_save(p, filename, ...)

## S3 method for class 'labeled_plot'
smart_save(p, filename = NULL, override = FALSE, ...)

## S3 method for class 'multipanelfigure'
smart_save(p, filename, ...)

Arguments

p

Plot object to save.

...

Additional parameters passed to plot method.

filename

Path to save plot at.

override

Override labels from labeled_plot with values from ....

Details

This is a generic function with methods defined for different classes, dispatching on the p argument.

Methods (by class)


allydunham/plotlistr documentation built on Feb. 19, 2020, 4:28 a.m.