rarefaction: rarefaction

View source: R/rarefaction.R

rarefactionR Documentation

rarefaction

Description

produce rarefaction plot. adapted from MetaSequencingSnake enumeration_report.Rmd

Usage

rarefaction(df)

Arguments

df

dataframe with samples in columns, features in rows

Value

list of ggplot rarefaction curve and associated dataframe

Examples

count_data <-  cbind(matrix(rnorm(100*5,mean=50000,sd=10000), 100, 5),
                     matrix(rnorm(100*5,mean=20000,sd=5000), 100, 5),
                     matrix(rnorm(100*5,mean=5000,sd=1000), 100, 5))
rarefaction(as.data.frame(count_data))

OxfordCMS/OCMS_Utility documentation built on July 16, 2025, 9:06 p.m.