alpha.div
runs Simp.index
or SW.index
to calculate Simpson's, Inverse Simpson's or Shannon-Weiner diversities.
Alpha diversity quantifies richness and evenness within a sampling unit (replicate).
Simpson's index has a straightforward interpretation. It is the probability of reaching into a plot and simultaneously pulling out two different species. The inverse Simpson's diversity is equivalent to the probability that two randomly chosen individuals will be the same species. These measures have been attributed to Simpson (1949). While it does not allow straightforward interpretation of results, the Shannon-Weiner diversity (H') is another commonly used alpha-diversity measure based on the Kullback-Liebler information criterion (Macarthur and Macarthur 1961).alpha.div(x,index)
Simp.index(x,inv)
SW.index(x)
simp
= Simpson's diversity, inv.simp
=inverse Simpson's, shan
= Shannon-Weiner diversity.x
is a vector. A vector of diversities (one for each site) are returned if x
is a matrix.beta.div
library(vegan)
data(varespec)
alpha.div(varespec,"simp")
Run the code above in your browser using DataLab