abundances | R Documentation |
Retrieves the taxon abundance table from phyloseq-class object and ensures it is systematically returned as taxa x samples matrix.
abundances(x, transform = "identity")
x |
|
transform |
Transformation to apply. The options include: 'compositional' (ie relative abundance), 'Z', 'log10', 'log10p', 'hellinger', 'identity', 'clr', 'alr', or any method from the vegan::decostand function. |
Abundance matrix (OTU x samples).
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
data(dietswap)
a <- abundances(dietswap)
# b <- abundances(dietswap, transform='compositional')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.