en:rarefaction_r
Table of Contents
Section: Diversity analysis
Rarefaction
R functions
iNEXT(libraryiNEXT) calculates abundance- and incidence-based rarefaction of species on the number of individuals (or sites) or on sample coverage (a measure of completeness). The name stems from interpolation-extrapolation since the function allows both interpolation (aka rarefaction) and extrapolation of the curve (extrapolation works up to two times of the maximum number of individuals or samples in case of q = 0). Functionplotdraws the rarefaction curves (optionally with confidence intervals) for any combination of a number of individuals (or samples) vs the number of species vs sample coverage (modified by the argumenttypein the functionplotapplied oniNEXTobject, see?plot.iNEXT).estimateD(libraryiNEXT) - rarifies the number of species per common number of individuals or sites or per common level of coverage (completeness). It works for species richness (q = 0) as well as for Shannon diversity (q = 1) and Simpson diversity(q = 2).DataInfo(libraryiNEXT) - presents a summary of the original data (number of assemblages, number of individuals or samples, number of species per assemblage, species coverage, and the list of ten abundance or incidence frequency counts (e.g.,f1forabundancedata is the number of singletons, i.e. number of species occurring by a single individual only). The object is also included as a component in the list object generated byiNEXTfunction.rarefy(libraryvegan) - calculates abundance-based rarefaction. Applies to the sample x species matrix (cells must be genuine abundances, i.e., counts of individuals) or a vector of abundances.rarecurve(libraryvegan) - draws a rarefaction curve for each row in the data. No confidence intervals are calculated.specaccum(libraryvegan) - calculates accumulation curve on the community data matrix (one curve per matrix);plotdraws the result (optionally with confidence interval).
Further reading:
- Vignette about how to use iNEXT package can be found on CRAN: https://cran.r-project.org/web/packages/iNEXT/vignettes/Introduction.pdf
en/rarefaction_r.txt · Last modified: by David Zelený
