tax_top | R Documentation |
Simple wrapper around tax_sort that:
optionally aggregates taxa at rank
sorts the aggregated taxa according to by
returns the top n
number of taxa names
tax_top(data, n = 10, by = sum, rank = "unique", use_counts = FALSE, ...)
data |
phyloseq object or psExtra |
n |
how many taxa names to return, or NA for all (can return fewer than n values, if there are fewer to return) |
by |
how to sort taxa (see |
rank |
taxonomic rank to aggregate at before calculating ("unique" = no aggregation) |
use_counts |
use count data if available, instead of transformed data |
... |
Arguments passed on to
|
vector of taxa names at chosen rank
tax_agg
for more info on taxonomic aggregation
tax_sort
for more info on sorting taxa
data("dietswap", package = "microbiome")
tax_top(dietswap)
tax_top(dietswap, n = 4, by = "prev", rank = "Phylum", undetected = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.