add_to_plot_list: Add a plot to a plot_list

Description Usage Arguments Value Examples

View source: R/plots.R

Description

add_to_plot_list adds a plot and an optional file name to the supplied list. If no file name is supplied an arbitrary one is created of the form 'plot-' index '.png'.

Usage

1
add_to_plot_list(plot_list, plot, filename = NULL)

Arguments

plot_list

a list to hold the plots

plot

a plot object

filename

character, the filename to use to save the plot

Value

the new plot list

Examples

1
2
plot_list <- add_to_plot_list(plot_list, plot)
plot_list <- add_to_plot_list(plot_list, plot, filename = 'file1.png')

richysix/miscr documentation built on April 30, 2020, 12:14 a.m.