rarecurve: Rarefaction Curve

View source: R/rarecurve.R

rarecurveR Documentation

Rarefaction Curve

Description

rarecurve() will generate a visualization of the rarefaction curve showing the associated library size.

Usage

rarecurve(x, sample = "Sample")

Arguments

x

The rarefy_whole_rep() object.

sample

The sample ID which will be used to assign colours to different samples. Leave blank if don't want colours.

Value

A ggplot object of the rarefaction curve showing the observed ASV count according to library size of each sample.

Examples

library(mirlyn)
data(example)

## Not run: 
rarefy_whole_rep_ex <- rarefy_whole_rep(example, rep = 100)
rarecuruve_ex <- rarecurve(rarefy_whole_rep_ex, sample = "Sample")

## End(Not run)


escamero/mirlyn documentation built on Aug. 6, 2023, 9:30 p.m.