add_to_plot_list: Add a plot to a plot_list

View source: R/plots.R

add_to_plot_listR Documentation

Add a plot to a plot_list

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

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

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 March 24, 2023, 5:24 a.m.