diversity: Calculate a collection of diversity statistics from a...

Description Usage Arguments Value References See Also Examples

View source: R/diversity-divtable.R

Description

Given a sites-by-counts matrix, calculate a collection of diversity statistics. Statistics include PMI (probability of maternal inheritance) from Grivet et al. (2005) and Scofield et al. (2010, 2011) as well as alpha, beta, gamma and delta/omega from classical ecology and applied to a dispersal context by Scofield et al. (2012).

Calculate diversity for allele_divtables object using diversityMultilocus

Usage

1
2
3
4
5
6
7
8
## Default S3 method:
diversity(tab, ...)

## S3 method for class 'divtable'
diversity(tab, ...)

## S3 method for class 'allele_divtables'
diversity(x, ...)

Arguments

tab

divtable of sites-by-counts data. An attempt is make to convert it to class divtable if it is not already. Rows are not reordered.

x

Object of class allele_divtables

...

Additional arguments, currently ignored

...

Additional arguments passed to diversityMultilocus

Value

A list of class diversity containing three forms of diversity statistics, each returned as lists under separate named elements:

Each such list q, r and q.nielsen contains several elements representing different diversity statistics. Several quantities are included:

The list also contains the original divtable passed to diversity, together with several descriptive quantities:

Finally, some additional statistics representing pooled PMI measures (Scofield et al. 2010) and weighted overlaps (Scofield et al. 2011) are returned:

The value from diversityMultilocus

References

Simpson, E. D. (1949) Measurement of diversity. Nature 163:688.

Chao, A., Jost, L., Chiang, S. C., Jiang, Y. H., and Chazdon, R. L. (2008) A two-stage probabilistic approach to multiple-community similarity indices. Biometrics 64:1178-1186.

Grivet, D., Smouse, P. E. and Sork, V. L. (2005) A novel approach to an old problem: tracking dispersed seeds. Molecular Ecology 14:3585-3595.

Nielsen, R., Tarpy, D. R. and Reeve, H. K. (2003) Estimating effective paternity number in social insects and the effective number of alleles in a population. Molecular Ecology 12:3157-3164.

Scofield, D. G., Sork, V. L. and Smouse, P. E. (2010) Influence of acorn woodpecker social behaviour on transport of coast live oak (Quercus agrifolia) acorns in a southern California oak savanna. Journal of Ecology 98:561-572.

Scofield, D. G., Alfaro, V. R., Sork, V. L., Grivet, D., Martinez, E., Papp, J., Pluess, A. R., Koenig, W. D. and Smouse, P. E. (2011) Foraging patterns of acorn woodpeckers (Melanerpes formicivorus) on valley oak (Quercus lobata N\'ee) in two California oak savanna-woodlands. Oecologia 166:187-196.

Scofield, D. G., Smouse, P. E., Karubian, J. and Sork, V. L. (2012) Use of alpha, beta and gamma diversity measures to characterize seed dispersal by animals. American Naturalist 180:719-732.

See Also

diversityMultilocus

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## create table of random memberships from data frame of site-source pairs
n.sites <- 5
n.sources <- 10
n.samples <- 160
set.seed(75333)
t <- data.frame(site = sample(n.sites, n.samples, replace = TRUE),
                source = round(runif(n.samples) * n.sources + 0.5))
## diversity accepts table via default method, which applies as.divtable
div <- diversity(table(t))
div$q

douglasgscofield/dispersalDiversity documentation built on March 30, 2021, 9:50 a.m.