top_taxa: Top Taxa

View source: R/top_taxa.R

top_taxaR Documentation

Top Taxa

Description

Return n most abundant taxa (based on total abundance over all samples), sorted by abundance

Usage

top_taxa(x, n = ntaxa(x))

Arguments

x

phyloseq object

n

Number of top taxa to return (default: all)

Value

Character vector listing the top taxa

Examples

data(dietswap)
topx <- top_taxa(dietswap, n=10)

microbiome/microbiome documentation built on Dec. 12, 2024, 2:45 p.m.