View source: R/taxonomy-based.R
plot_taxa_bars | R Documentation |
Stacked bar plots will be generated for each factor level
indicated by type_header
to display their taxonomic compositions.
Only the top few taxa will be displayed as indicated by num_taxa
.
Mean values are calculated within the factor levels.
plot_taxa_bars( tax_table, metadata_map, type_header, num_taxa, data_only = FALSE )
tax_table |
A taxa table dataframe. The output of
|
metadata_map |
The mapping file dataframe. |
type_header |
The factor (metadata header label) used to create the bars. Means will be taken for each factor level. |
num_taxa |
The number of top most abundant taxa to display. Additional will be grouped into "Other". |
data_only |
[OPTIONAL] Set to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.