Description Usage Arguments Details Methods (by class)
smart_save
saves plot objects using different methods depending on
class, including support for labeled_plot
objects.
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, ...)
|
p |
Plot object to save. |
... |
Additional parameters passed to plot method. |
filename |
Path to save plot at. |
override |
Override labels from |
This is a generic function with methods defined for different classes,
dispatching on the p
argument.
default
: Use ggsave
by default
labeled_plot
: Process labels from labeled_plot
multipanelfigure
: Save multipanelfigure
objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.