get_topn: Extract the top _n_ OTUs from a phyloseq-object

Description Usage Arguments Value Examples

View source: R/get_topn.R

Description

Extract the top n OTUs from a phyloseq-object

Usage

1
get_topn(ps, n = 15, residuals = TRUE)

Arguments

ps

phyloseq-object.

n

number of OTUs to extract; ranking based on mean (relative) abundance.

residuals

include residuals (logical). Default: TRUE

Value

Returns a phyloseq-object only containing the top n OTUs. This function is mainly used in the context of plotting functions.

Examples

1
2

wsteenhu/microbiomer documentation built on March 11, 2021, 6:05 p.m.