rare_curve: Species rarefaction curve

View source: R/SAC_spatial.R

rare_curveR Documentation

Species rarefaction curve

Description

Expected species richness as a function of sample size

Usage

rare_curve(abund_vec)

Arguments

abund_vec

Species abundance distribution of the community (integer vector)

Details

This function essentially evaluates spec_sample for sample sizes from 1 to sum(abund_vec). It is similar to the function vegan:rarecurve in the R package vegan.

Value

Numeric Vector with expected species richness in samples of 1, 2, 3 ... n individuals

References

Gotelli & Colwell 2001. Quantifying biodiversity: procedures and pitfalls in the measurement and comparison of species richness. Ecology Letters 4, 379–391.

Examples

sad1 <- sim_sad(100, 2000, sad_type = "lnorm", sad_coef = list("meanlog" = 2,
                                                                "sdlog" = 1))
rc1 <- rare_curve(sad1)
plot(rc1, type = "l", xlab = "Sample size", ylab = "Expected species richness")


MoBiodiv/mobsim documentation built on April 1, 2024, 11:29 a.m.