View source: R/taxa_abundance_bars.R
taxa_abundance_bars | R Documentation |
Inputs a phyloseq-class
object and
creates barplots of taxa by treatment.
taxa_abundance_bars(phyloseq_obj, treatment = NULL, subset = NULL,
classification = NULL, transformation = "none", colors = "default",
wrap_by = NULL, treatment_labels = NULL, sample_labels = NULL,
classification_labels = NULL)
phyloseq_obj |
A |
treatment |
Column name as a string or number in the
|
subset |
A factor within the |
classification |
Column name as a string or number in the
|
transformation |
Transformation to be used on the data. "none", "mean", "median", "sd", "log", "log10" |
colors |
Name of a color set from the RColorBrewer package or a vector palette of R-accepted colors. |
wrap_by |
Column name as a string or number in the
phyloseq |
treatment_labels |
a vector of names to be used as labels for treatments/facets. |
sample_labels |
a vector of names to be used as labels for Samples. |
classification_labels |
a vector of names to be used as labels for the taxonomic classifications. |
ggplot-object
taxa_abundance_bars(
taxa_filter(soil_column, frequency = 0.8),
classification = 'Phylum', treatment = c('Matrix', 'Treatment'),
subset = 'Unamended', transformation = 'mean')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.