labeled_plot: Attach labels to a plot object

Description Usage Arguments Details Methods (by class)

View source: R/labeled_plot.R

Description

labeled_plot creates a plot object with attributes describing how to save it. If p is already a labeled_plot the additional labels will be added to it.

Usage

1
2
3
4
5
6
7
labeled_plot(p, ...)

## Default S3 method:
labeled_plot(p, ...)

## S3 method for class 'labeled_plot'
labeled_plot(p, ...)

Arguments

p

Plot to wrap

...

Other parameters passed to saving method (e.g. see ggsave)

overwrite

Overwrite existing files by default.

filename

Name of file to save to, including extension. Will be added to the path when saving plot lists. Overrides file_format

file_format

Format of file to save (e.g. pdf, jpg)

units, height, width

Size of plot, in units

Details

This is an S3 class interacting with the smart_save S3 generic.

Methods (by class)


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