Plots distribution of taxa.
taxa_distribution(
x,
color.level = "Phylum",
color.taxa = brewer.pal(12, "Paired")
)
Arguments
- x
phyloseq-class
object
- color.level
Taxonomic level to color
- color.taxa
vector of colors specified by user
Default is brewer.pal(12,"Paired")
Examples
library(microbiomeutilities)
data("zackular2014")
pseq <- zackular2014
p <- taxa_distribution(pseq)
p
#> Warning: Groups with fewer than two data points have been dropped.
#> Warning: Removed 1 row(s) containing missing values (geom_path).