richCurve: Species richness estimates based on accumulation curves

View source: R/richCurve.R

richCurveR Documentation

Species richness estimates based on accumulation curves

Description

Provides a shell into which species richness estimators may be plugged to provide estimates based on species accumulation curves, as provided by EstimateS.

Usage

richCurve(obsMat, FUNC, runs = 10, ...)

richSobs(incVec)
richSingle(cntVec)
richDouble(cntVec)
richUnique(incMat)
richDuplicate(incMat)

Arguments

incVec

a vector of species incidences (presences) in one or more samples; a vector of counts or a species x sites matrix of incidences or counts may be supplied.

cntVec

a vector of species counts (abundances); a species x sites matrix of counts may be supplied and will be converted to a vector with rowSums.

incMat

a 1/0 matrix of species incidence (presence), species x sites. A matrix of counts may also be provided.

obsMat

a matrix of species counts, species x sites; a matrix of incidences will be sufficient if accepted by FUNC.

FUNC

a function to estimate species richness based on a matrix of observations; see Species richness estimators for examples.

runs

the number of randomisations of samples (ie. columns in the input matrix) to perform to calculate mean and standard deviation.

...

additional arguments passed to FUNC.

Details

The reliability of estimates of species richness depends on the sampling effort. To investigate this effect, and judge whether the current sampling effort is adequate, we calculate richness estimates for subsets of the data. Assuming that the columns of the data matrix are independent samples from the population, richCurve calculates estimates for 1 sample, 2 samples, and so on. This is repeated for many runs, and the mean and standard deviation calculated.

The other functions documented here are trivial, but useful for plugging into richCurve:

richSobs : the number of species observed.

richSingle : the number of singletons, ie. species represented by just 1 individual in the pooled samples.

richDouble : the number of doubletons, ie. species represented by exactly 2 individuals in the pooled samples.

richUnique : the number of uniques, ie. species represented in just one sample.

richDuplicate : the number of duplicates, ie. species represented in exactly 2 samples.

Value

richCurve returns a list with elements:

mean

A matrix (possibly 1-column) with a row for each sample and a column for each value returned by FUNC.

SD

The corresponding matrix with the standard deviations of the estimates from the runs.

The other functions return scalars.

Author(s)

Mike Meredith

Examples

data(seedbank)
plot(richCurve(seedbank, richSobs)$mean, type='l', ylim=c(0, 35))
lines(richCurve(seedbank, richSingle)$mean, col='blue')
lines(richCurve(seedbank, richDouble)$mean, col='blue', lty=2)

wiqid documentation built on Nov. 18, 2022, 1:07 a.m.