If save_plots is TRUE, the plot will be saved as an image to the path at
file.path(plots_dir, filename).
If plot_obj is a ggplot, ggplot2::ggsave() is used to save the image.
Otherwise, graphics_device is used (grDevice::png() by default).
Arguments
- plot_obj
 plot object (e.g. ggplot, ComplexHeatmap...)
- filename
 name of the output file. will be joined with the
plots_diroption.- print_plots
 Whether to print plots during analysis (Defaults to
FALSE, overwritable using option 'moo_print_plots' or environment variable 'MOO_PRINT_PLOTS')- save_plots
 Whether to save plots to files during analysis (Defaults to
FALSE, overwritable using option 'moo_save_plots' or environment variable 'MOO_SAVE_PLOTS')- plots_dir
 Path where plots are saved when
moo_save_plotsisTRUE(Defaults to"figures/", overwritable using option 'moo_plots_dir' or environment variable 'MOO_PLOTS_DIR')- graphics_device
 Default:
grDevice::png(). Only used if the plot is not a ggplot.- ...
 arguments forwarded to
ggplot2::ggsave()
See also
Other plotters:
plot_corr_heatmap(),
plot_expr_heatmap(),
plot_histogram(),
plot_pca(),
plot_read_depth()