Save plots by name
Arguments
- plots
A named list of
ggplot2
plots.- save_path
A character string indicating where to save plots if required.
- type
A character string indicating the format to use to save plots.
- ...
Additional arguments passed to
ggplot2::ggsave()
See also
Plotting functions
add_forecast_dates()
,
plot.fv_forecast()
,
plot.fv_posterior()
,
plot_cases()
,
plot_default()
,
plot_growth()
,
plot_pairs()
,
plot_posterior()
,
plot_rt()
,
plot_theme()
,
plot_voc_advantage()
,
plot_voc_frac()
Examples
posterior <- fv_example(strains = 2, type = "posterior")
p <- plot(posterior, type = "all")
save_plots(p, save_path = tempdir())
#> Saving 6.67 x 6.67 in image
#> Saving 6.67 x 6.67 in image
#> Saving 6.67 x 6.67 in image
#> Saving 6.67 x 6.67 in image
#> Saving 6.67 x 6.67 in image
#> Saving 6.67 x 6.67 in image