Skip to contents

Building curves

Preparing site-by-species data

The input structures spacc() accepts, how to build them from long-format occurrence records with a keyed reshape, abundance against incidence, grouped inputs, and the errors malformed input gives.

Choosing an accumulation order

Run the seven ordering rules of spacc() and user-supplied orders on one dataset, compare the curves and the routes they take, and choose a rule for a sampling question.

Comparing curves between groups and regions

Test two accumulation curves with compare(), split one survey into species groups along shared orders, run one curve per region with support, and combine result objects with c().

Running on many sites

Choose the nearest-neighbour backend, decide when to precompute distances, and set the number of threads for surveys with thousands of sites, with run times measured on one machine.

Diversity

Accumulating Hill numbers and partitioning diversity

Track richness, Shannon and Simpson diversity as sites are added, split regional diversity into local and turnover parts, and read dominance from diversity profiles.

Accumulating beta diversity

Split the change in composition along an accumulation curve into turnover and nestedness, count effectively distinct communities with Hill numbers, and repeat the partition in trait space or on a phylogeny.

Accumulating phylogenetic and functional diversity

Track phylogenetic and trait diversity of the accumulated community, Rao’s quadratic entropy, redundancy relative to species counts, and the diversity of interaction networks along spatial orders.

Effort and completeness

Rarefying to equal effort

Rarefy richness and Hill numbers to a common number of individuals or sites, analytically or by thinning spatially redundant sites.

Standardising by sample coverage

Track sample coverage along a spatial accumulation and compare richness and Hill numbers at equal completeness, interpolated or extrapolated.

Estimating total richness

Estimate the number of species including the undetected ones with the Chao, ACE, jackknife, bootstrap and accumulation rate curve estimators, and profile sample completeness across Hill orders.

Extrapolating curves and predicting richness

Fit asymptotic models to an accumulation curve, compare them by AIC, read off total richness with an interval, and predict richness at more sites or a larger area.

Spatial patterns

Measuring distance decay and zeta diversity

Fit pairwise dissimilarity against distance, count the species gained around focal points as the radius grows, and follow how the number of shared species falls as more sites are compared.

Testing turnover against null models

Compare an observed accumulation curve with curves from randomised communities, read the standardised effect size along the curve, and see how the choice of null model changes the result.

Relating diversity to area

Track endemic species as the sampled area grows, fit the diversity-area relationship, and separate the effects of fragmentation and survey effort from the effect of area.

Mapping per-site metrics and wavefronts

Run an accumulation from every site to map where species accumulate fastest, export the values to sf, and follow richness along an expanding radius.

Partitioning spatial structure

Build Moran eigenvector maps from site coordinates and split the variance of a per-site diversity metric into a spatial share and a residual, scale by scale.

Background

How spatial accumulation works

The definitions behind spacc: the accumulation curve as a function of a site ordering, the seven ordering rules as formulas, the distance metrics, the nearest-neighbour backends, and how the spatial curve relates to the random-order one.