View source: R/microbiome_helpers.R
Bar plot of all the genera within a specified phylum.
1 2 | plot_genus_by_phylum(physeq, phylum, x = "Sample", filter = NULL,
facet_by_fam = FALSE, xlabel = NULL)
|
physeq |
A valid phyloseq object |
phylum |
character, the phylum to plot |
x |
character, the variable to plot on the x-axis, should be one of sample_variables(physeq). Note that if this is anything other than "Samples", the default, the mean abundance for each value will be plotted. |
filter |
numeric, top fraction of abundance to return |
facet_by_fam |
logical, facet by family, default is FALSE |
xlabel |
character, when plotting individual samples the variable to use for labels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.