order_taxa | R Documentation |
order_taxa()
reorders the taxon names in a taxon column (e.g. 'Class' or
'Phylum') by the taxon's mean abundance (but always makes sure to put Other
first).
order_taxa(phy_df, rank, abund = "Abundance", decreasing = FALSE)
phy_df |
A data frame of a phyloseq object, as produced by
|
rank |
The name of the column to be re-ordered |
abund |
The name of the abundances column. Defaults to 'Abundance' |
decreasing |
Specifies whether the taxon order should be based on decreasing or increasing abundance. Defaults to FALSE. |
A data frame that is identical to the one given, but with the specified column re-ordered by its mean abundance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.