| alphaDiversity | R Documentation |
Compute Hill numbers for each site individually.
alphaDiversity(x, q = c(0, 1, 2), coords = NULL)
x |
A site-by-species matrix (abundance data). |
q |
Numeric vector. Orders of diversity. Default |
coords |
Optional data.frame with columns |
Alpha diversity represents local (within-site) diversity. For Hill numbers:
q=0: Species richness
q=1: Exponential of Shannon entropy
q=2: Inverse Simpson concentration
If coords is NULL, a data.frame with columns for each q value.
If coords is provided, a spacc_alpha object.
Jost, L. (2007). Partitioning diversity into independent alpha and beta components. Ecology, 88, 2427-2439.
gammaDiversity() for regional diversity, diversityPartition()
for full alpha-beta-gamma decomposition
species <- matrix(rpois(50 * 30, 2), nrow = 50)
alpha <- alphaDiversity(species, q = c(0, 1, 2))
head(alpha)
# Mean alpha diversity
colMeans(alpha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.