View source: R/dada_phyloseq.R
reorder_taxa_pq | R Documentation |
Note that the taxa order in a physeq object with a tree is locked by the order of leaf in the phylogenetic tree.
reorder_taxa_pq(physeq, names_ordered, remove_phy_tree = FALSE)
physeq |
(required): a |
names_ordered |
(required): Names of the taxa (must be the same
as taxa in |
remove_phy_tree |
(logical, default FALSE) If TRUE, the phylogenetic tree is removed. It is |
A phyloseq object
Adrien Taudière
data_fungi_ordered_by_genus <- reorder_taxa_pq(
data_fungi,
taxa_names(data_fungi)[order(as.vector(data_fungi@tax_table[, "Genus"]))]
)
data_fungi_mini_asc_ordered_by_abundance <- reorder_taxa_pq(
data_fungi_mini,
taxa_names(data_fungi_mini)[order(taxa_sums(data_fungi_mini))]
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.