Learn R Programming

mobsim (version 0.3.2)

rare_curve: Species rarefaction curve

Description

Expected species richness as a function of sample size

Usage

rare_curve(abund_vec)

Value

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

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 rarecurve in the R package vegan.

References

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

Examples

Run this code
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")

Run the code above in your browser using DataLab