This function saves stacked barplot stored in a list object to an output folder.

save_stacked_barplots(sb_plots, format = "tiff", start_path = "output",
  ...)

Arguments

sb_plots

A named list of stacked barplots.

format

The format of the output image. Default: 'tiff'

start_path

The starting path of the output directory. Default: 'output'

...

An optional list of parameters to use in the output_dir function.

Value

An output directory that contains stacked barplot.

Details

This function creates an appropriate output directory, where it saves publication ready plots.

See also

Examples

# NOT RUN {
if (interactive()) {
  # This example uses data that are no longer available in the MicrobiomeR package,
  # however, they can be easily generated with \code{\link{MicrobiomeR}{as_analyzed_format}}.
  library(MicrobiomeR)
  analyzed_silva <- as_MicrobiomeR_format(MicrobiomeR::raw_silva_2, "analyzed_format")
  alpha_div_plots <- alpha_diversity_plots(analyzed_silva)
  # Save to \emph{./output/alpha_diversity} folder.
  save_alpha_diversity_plot(salpha_div_plots)
}
# }