| spaccHill | R Documentation |
Compute spatial species accumulation curves using Hill numbers (effective number of species) instead of raw richness. Hill numbers unify diversity measures: q=0 is richness, q=1 is exponential Shannon, q=2 is inverse Simpson.
spaccHill(
x,
coords,
q = c(0, 1, 2),
n_seeds = 50L,
method = "knn",
distance = c("euclidean", "haversine"),
parallel = TRUE,
n_cores = NULL,
progress = TRUE,
seed = NULL,
map = FALSE
)
x |
A site-by-species matrix (rows = sites, cols = species) with presence/absence (0/1) or abundance data. |
coords |
A data.frame with columns |
q |
Numeric vector. Orders of diversity to compute. Default
|
n_seeds |
Integer. Number of random starting points. Default 50. |
method |
Character. Accumulation method: |
distance |
Character. Distance method: |
parallel |
Logical. Use parallel processing? Default |
n_cores |
Integer. Number of cores. Default |
progress |
Logical. Show progress bar? Default |
seed |
Integer. Random seed for reproducibility. |
map |
Logical. If |
Hill numbers (Chao et al. 2014) provide a unified framework for diversity measurement. Unlike raw richness (q=0), higher-order Hill numbers (q=1, q=2) down-weight rare species, providing different perspectives on diversity.
The spatial accumulation of Hill numbers can reveal scale-dependent diversity patterns missed by richness alone.
An object of class spacc_hill containing:
curves |
Named list of matrices, one per q value (n_seeds x n_sites) |
q |
Vector of q values used |
coords |
Original coordinates |
n_seeds |
Number of seeds |
n_sites |
Number of sites |
n_species |
Total species |
method |
Method used |
Chao, A., Gotelli, N.J., Hsieh, T.C., Sander, E.L., Ma, K.H., Colwell, R.K. & Ellison, A.M. (2014). Rarefaction and extrapolation with Hill numbers: a framework for sampling and estimation in species diversity studies. Ecological Monographs, 84, 45-67.
spacc() for richness-only accumulation, iNEXT::iNEXT() for
non-spatial Hill number rarefaction
# Compare diversity at different orders
coords <- data.frame(x = runif(50), y = runif(50))
species <- matrix(rpois(50 * 30, 2), nrow = 50)
hill <- spaccHill(species, coords, q = c(0, 1, 2))
plot(hill)
# Extract summary at final site
summary(hill)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.