rarefaction_curves: Computes rarefaction curves

View source: R/rarefying.R

rarefaction_curvesR Documentation

Computes rarefaction curves

Description

Computes rarefaction curves for a phyloseq object.

Usage

rarefaction_curves(phyloseq.object, step = 100, plot = TRUE)

Arguments

midiv.object

A midiv object. You may supply either this or a phyloseq object.

phyloseq.object

A phyloseq object. You may supply either this or a midiv object.

step

The step-size used to choose different down-sampling levels (readcounts).

plot

Logical, plotting the curves or return the table for later plotting.

Details

This function takes as input either a midiv object or a phyloseq object, and uses the function rarecurve in the vegan package for the computations.

Value

If plot = TRUE a ggplot object, if plot = FALSE the table with the data for plotting the curves. The latter is useful if you want a different display of the curves

Author(s)

Lars Snipen.


larssnip/midiv documentation built on Jan. 20, 2025, 6:22 p.m.