Skip to contents

Sample coverage is the fraction of a community’s total abundance that belongs to the species already recorded (Chao & Jost 2012). This article tracks coverage while sites accumulate in spatial order, reads richness and Hill numbers off the curves at a shared coverage, extrapolates past the coverage the data reached, and ends on a comparison of richness at matched coverage with richness at matched sample size. Coverage needs abundance counts; Rarefying to equal effort standardises presence/absence data by the number of sites. Installation is covered in Get started; the figures need ggplot2.

A fixed number of individuals, or of sites, corresponds to very different completeness depending on how abundant and how even the organisms are. In an even community a few hundred individuals already capture almost every species, so coverage is high. In a community with a few dominants and a long tail of rare species, the same individuals leave much of the tail undetected, so coverage stays low. Comparing the two at equal sample size compares them at unequal completeness, which brings back a version of the effort bias that rarefaction was meant to remove. Coverage-based standardisation makes completeness itself the shared quantity.

  1. Track coverage along the accumulation with spaccCoverage().

  2. Interpolate richness at fixed coverage levels with interpolateCoverage().

  3. Extrapolate past the observed coverage with extrapolateCoverage().

  4. Standardise several Hill numbers to one coverage with spaccHillCoverage().

Example

Simulating uneven effort

The example data are 60 sites on the unit square with Poisson abundances of the same 20 species, so every site has the same richness ceiling. The relative abundances rel decline geometrically, each species 0.7 times as abundant as the one before, which gives a few common species and a rare tail. The effort lambdas scales the expected number of individuals of a site to 20, 60 or 100, for 20 sites each, so differences in observed richness between these tiers come from effort alone. Rarefying to equal effort uses the same data.

set.seed(42)
n_sites <- 60
coords <- data.frame(x = runif(n_sites), y = runif(n_sites))

rel <- 0.7^(0:19) / sum(0.7^(0:19))
lambdas <- rep(c(1, 3, 5), each = 20)
species <- matrix(0, nrow = n_sites, ncol = 20)
for (i in seq_len(n_sites)) {
  species[i, ] <- rpois(20, lambda = 20 * lambdas[i] * rel)
}
colnames(species) <- paste0("sp", 1:20)

Tracking coverage along the accumulation

spaccCoverage() accumulates sites spatially from many random starting sites and records richness, individuals and coverage at each step. The default estimator coverage = "chao" counts singletons and doubletons among the individuals (Chao & Jost 2012). coverage = "chiu" uses how many sites each species occupies (Chiu 2023, Ecology) and is recommended when the sampling units are plots rather than independent individuals. The result holds n_seeds by n_sites matrices of richness, individuals and coverage.

cov_result <- spaccCoverage(species, coords, n_seeds = 30,
                            progress = FALSE, seed = 1)
cov_result
#> spacc coverage (Chao-Jost 2012): 60 sites, 20 species, 30 seeds
#> Mean final coverage: 100.0%
#> Mean final richness: 20.0 species
plot(cov_result)

Species richness and sample coverage against sites accumulated, averaged over 30 starting sites with bands across seeds. 10 15 20 0 20 40 60 Sites accumulated Species richness Coverage-Based Spatial Accumulation

The Chao-Jost estimator assumes that individuals are sampled independently. The Chiu estimator takes the same call with coverage = "chiu"; as.data.frame() returns the mean curves with one row per number of sites.

cov_chiu <- spaccCoverage(species, coords, n_seeds = 30,
                          coverage = "chiu", progress = FALSE, seed = 1)
tail(as.data.frame(cov_chiu), 3)
#>    sites richness individuals  coverage richness_sd  coverage_sd
#> 58    58       20    3475.267 0.9999395           0 1.176945e-05
#> 59    59       20    3535.267 0.9999336           0 7.710080e-06
#> 60    60       20    3587.000 0.9999315           0 0.000000e+00

Reading richness at a fixed coverage

interpolateCoverage() reads richness off each seed’s curve at the requested coverage levels by linear interpolation. It returns one row per seed and one column per target.

interp <- interpolateCoverage(cov_result, target = c(0.90, 0.95, 0.99))
round(colMeans(interp), 2)
#>   C90   C95   C99 
#>  8.08 10.29 13.19
round(apply(interp, 2, sd), 3)
#>   C90   C95   C99 
#> 1.208 1.828 2.731

Each seed is a different spatial path through the sites, so two seeds can reach the same coverage at different richness values. The column mean averages over the arbitrary starting point and is the point estimate at that coverage; the column standard deviation is the uncertainty the choice of starting point introduces, which is why the full matrix is returned.

The linear interpolation runs between accumulated sites. A target below the coverage of a seed’s first site is reached inside that site, and there the value is the coverage-based rarefaction of that site’s individuals (Chao & Jost 2012): the expected richness of a random subsample of the site, of the size whose expected coverage equals the target. iNEXT::estimateD(base = "coverage") returns the same value for the site’s abundances. A single site here can already reach a high coverage, which the share of seeds whose first site lies above each target shows.

first <- cov_result$coverage[, 1]
c(above_90 = mean(first > 0.90), above_95 = mean(first > 0.95),
  above_99 = mean(first > 0.99))
#> above_90 above_95 above_99 
#>      0.9      0.4      0.1

At 0.90 nine seeds in ten are read inside their first site, at 0.95 four in ten and at 0.99 one in ten. Inside the first site the subsample is a random draw of that site’s individuals; beyond it the sample grows by whole neighbouring sites. A comparison that is about how richness builds up across sites therefore needs a target above the coverage that single sites reach, which the first column of cov_result$coverage shows; the remaining sections use 0.99.

Extrapolating past the observed coverage

A target above the coverage a seed reached cannot be interpolated. Every seed ends with the same pooled sample of all sites, and extrapolateCoverage() extrapolates that sample with the estimators of Chao et al. (2014), towards the Chao1 asymptote for \(q = 0\). Targets below the observed coverage are interpolated along each seed’s curve as above. All 60 sites together reach a coverage close to 1, so the example uses the 20 sites of the lowest effort tier, whose pooled sample stops short of it. The printed output reports the observed coverage and richness next to the extrapolated values, so the size of the extrapolation step is visible.

co_lo <- spaccCoverage(species[lambdas == 1, ], coords[lambdas == 1, ],
                       n_seeds = 20, progress = FALSE, seed = 1)
extrap <- extrapolateCoverage(co_lo, target_coverage = c(0.95, 0.99, 1.0),
                              q = 0)
extrap
#> Coverage-based extrapolation
#> -------------------------------- 
#> Diversity order: q = 0
#> Observed coverage: 99.2%
#> Observed richness: 14.0
#> 
#> Extrapolated richness:
#>   C=95%: 8.4 (+/- 1.6)
#>   C=99%: 10.8 (+/- 2.9)
#>   C=100%: 17.0 (+/- 0.0)
summary(extrap)
#>      target_coverage mean_richness       sd     lower    upper
#> C95             0.95      8.368604 1.607922  5.380739 10.78506
#> C99             0.99     10.767557 2.936122  5.465000 14.00000
#> C100            1.00     16.992147 0.000000 16.992147 16.99215
plot(extrap)

Richness against sample coverage with a dashed line at the observed coverage and extrapolated points beyond it. 5.0 7.5 10.0 12.5 15.0 17.5 0.92 0.96 1.00 Sample coverage Diversity (q = 0) Observed coverage: 99.2% Coverage-Based Extrapolation

The dashed line marks the observed coverage. The points beyond it are model-based projections whose uncertainty grows with the distance from the data, and targets far past the observed maximum are an informed extrapolation, not a measurement. A spacc_coverage object carries richness only; for the Shannon (\(q = 1\)) and Simpson (\(q = 2\)) orders, pass a spaccHillCoverage() object, whose extrapolation approaches the Shannon and Simpson asymptotes.

Standardising Hill numbers to one coverage

spaccHillCoverage() tracks Hill numbers of several orders together with coverage. target_coverage adds a standardized component with each order’s value interpolated to that coverage for every seed.

hc <- spaccHillCoverage(species, coords, q = c(0, 1, 2),
                        target_coverage = 0.99, n_seeds = 20,
                        progress = FALSE, seed = 1)
hc
#> spacc Hill + Coverage: 60 sites, 20 species, 20 seeds
#> Orders (q): 0, 1, 2
#> Mean final coverage: 1.000
#> Target coverage: 0.99
sapply(hc$standardized, mean)
#>      q0.0      q1.0      q2.0 
#> 13.243235  7.305972  5.606869

The seed-averaged effective numbers of species at 99% coverage follow the ordering \({}^{0}D \ge {}^{1}D \ge {}^{2}D\) that holds for any community, with richness well above the two orders that weight species by abundance.

plot(hc, xaxis = "coverage")

Hill numbers of order 0, 1 and 2 against sample coverage; the order 0 curve lies above order 1, which lies above order 2. 5 10 15 20 0.94 0.96 0.98 1.00 Sample coverage Hill number Order q = 0 q = 1 q = 2 Hill Numbers vs. Sample Coverage

On the coverage axis the vertical gap between the \(q = 0\) and \(q = 2\) curves at a fixed coverage measures how uneven the community is: a wide gap means a few dominant species and a long rare tail. Read at the end of its own accumulation, each order would sit at a slightly different completeness, and the contrast between orders would mix a diversity difference with a residual effort difference. Fixing the coverage first leaves the spacing between \({}^{0}D\), \({}^{1}D\) and \({}^{2}D\) as a measure of evenness. Several communities compare the same way: standardise each to the same coverage and read off its diversity profile. Comparing them at equal site count instead would penalise the region whose organisms are rarer, because the same number of sites buys it less coverage. The coverage-standardised Hill beta diversity of spaccHillBeta(standardize = "coverage") is covered in Accumulating beta diversity.

Sites drawn from a finite set of units

The Chiu coverage treats the sites as draws with replacement from an unlimited set of units. An atlas grid or a plot network is finite, and a survey often covers a large fraction \(w = t / T\) of its \(T\) units. Once \(w\) is large, species not yet seen can only sit in the few remaining units, and at \(w = 1\) the survey is a census. n_units = T switches the coverage to its without-replacement form (with coverage = "chiu"). The example is a 20 by 20 grid of 300 rare species, with occupancies drawn between 0.001 and 0.03, of which a survey visits 320 cells.

set.seed(1)
grid <- sapply(runif(300, 0.001, 0.03),
               function(p) rbinom(400, 1, p) * (1L + rpois(400, 1)))
grid <- grid[, colSums(grid) > 0]
cells <- data.frame(x = rep(1:20, 20), y = rep(1:20, each = 20))
surveyed <- sample(400, 320)
survey <- grid[surveyed, ]
detected <- colSums(survey) > 0

The true coverage is the share of the grid’s total abundance held by the detected species. The coverage after all 320 surveyed cells is compared with and without n_units.

cov_wr <- spaccCoverage(survey, cells[surveyed, ], n_seeds = 20,
                        coverage = "chiu", progress = FALSE, seed = 1)
cov_grid <- spaccCoverage(survey, cells[surveyed, ], n_seeds = 20,
                          coverage = "chiu", n_units = 400,
                          progress = FALSE, seed = 1)
c(true = sum(grid[, detected]) / sum(grid),
  with_replacement = mean(cov_wr$coverage[, 320]),
  n_units = mean(cov_grid$coverage[, 320]))
#>             true with_replacement          n_units 
#>        0.9950097        0.9896038        0.9959013

The finite-population coverage lands next to the true share, while the with-replacement coverage falls short of it. The undetected abundance is the estimated number of undetected species times the mean abundance of a species found in one site only; with n_units that number is the MoRE estimate of chao2(n_units = ) (Chiu 2023, Methods in Ecology and Evolution), so richness and coverage of one sample rest on the same estimate of what is missing. Estimating total richness runs that estimator on the same grid.

On simulated grids the finite-population coverage has the lower error once half the grid is sampled. The grids are 200 cells with occupancies of 0.003 to 0.15 (common) and 400 cells with occupancies of 0.001 to 0.02 (sparse), 400 draws per row:

Grid \(w\) True coverage RMSE, with replacement RMSE, n_units
common 0.10 0.856 0.064 0.060
common 0.50 0.996 0.0045 0.0038
common 0.95 1.000 0.0025 0.0002
sparse 0.10 0.467 0.073 0.104
sparse 0.30 0.838 0.038 0.040
sparse 0.50 0.947 0.020 0.016
sparse 0.80 0.991 0.016 0.004
sparse 0.95 0.999 0.015 0.0015

Near a census the with-replacement coverage stays below the truth by about 0.014 on the sparse grid, because Chao2 still predicts undetected species that cannot exist; the finite form removes that bias. At small fractions of a sparse grid, MoRE predicts more undetected species than Chao2 and the coverage comes out low, so n_units pays off from about half the grid on.

Comparing equal effort with equal coverage

Raw richness, richness at matched individuals and richness at matched coverage can disagree about which sites are more diverse, because they hold different quantities constant. The lowest and highest effort tiers share the same 20-species community but differ fivefold in individuals per site. Their raw pooled richness comes first, then both tiers rarefied to the size of the smaller pool with rarefy().

lo <- species[lambdas == 1, ]
hi <- species[lambdas == 5, ]
raw <- c(low = sum(colSums(lo) > 0), high = sum(colSums(hi) > 0))
n_match <- min(sum(lo), sum(hi))
S_lo <- rarefy(lo, n_individuals = n_match)$expected
S_hi <- rarefy(hi, n_individuals = n_match)$expected

Matched coverage interpolates both tiers to 99% coverage, so the comparison rewards equal proportional representation rather than equal individuals. co_lo is the low tier’s coverage object from Extrapolating past the observed coverage.

co_hi <- spaccCoverage(hi, coords[lambdas == 5, ], n_seeds = 20,
                       progress = FALSE, seed = 1)
S_lo_c <- mean(interpolateCoverage(co_lo, target = 0.99)[, 1])
S_hi_c <- mean(interpolateCoverage(co_hi, target = 0.99)[, 1])
data.frame(
  standardisation = c("Raw richness", "Matched individuals",
                      "Matched coverage (0.99)"),
  low = c(raw[["low"]], round(S_lo, 1), round(S_lo_c, 1)),
  high = c(raw[["high"]], round(S_hi, 1), round(S_hi_c, 1))
)
#>           standardisation  low high
#> 1            Raw richness 14.0 20.0
#> 2     Matched individuals 14.0 15.2
#> 3 Matched coverage (0.99) 10.8 13.3

The three rows answer three questions about the same two tiers. The raw row counts the species recorded, a statement about the survey. The matched-individuals row asks how many species each tier would show if both had been sampled to the same depth, which removes the fivefold difference in effort. The matched-coverage row asks how many species each tier holds at equal completeness, which can favour the low-effort tier if its smaller sample happened to be more even. Both tiers come from the same 20-species pool, so they are equally diverse: the raw gap of six species shrinks to about one at matched individuals and to 2.5 at matched coverage. In field data the truth is unknown, and the comparison to report is the standardised one, with the quantity held constant stated.

Matched individuals and matched coverage do not always agree, and a difference between them is informative. When they diverge, the tiers differ in evenness as well as in effort: equalising individuals leaves the more even community at higher coverage, while equalising coverage gives it fewer individuals. Coverage is usually the more defensible target for communities that differ in evenness, because equal completeness is closer to the question of how much of each community has been seen. Matched individuals remain the right target when the comparison is about a fixed sampling budget.

Coverage estimators

Chao and Jost (2012) estimate coverage from the frequency counts of the pooled sample:

\[ C = 1 - \frac{f_1}{N} \cdot \frac{(N-1) f_1}{(N-1) f_1 + 2 f_2}. \]

Here \(f_1\) is the number of singletons, species represented by exactly one individual, \(f_2\) the number of doubletons, species represented by exactly two, and \(N\) the total number of individuals. The estimator rests on the Good-Turing argument that singletons carry the signal about undetected species: many singletons relative to doubletons mean the rare tail is poorly sampled and coverage is low. When \(f_1 = 0\) every observed species has been seen more than once, the correction vanishes and \(C = 1\). Without doubletons (\(f_2 = 0\)) the second fraction is \(\frac{(N-1)(f_1-1)}{(N-1)(f_1-1) + 2}\), as in iNEXT, and a sample of one individual is given a coverage of 0.

The deficit \(1 - C\) estimates the probability that the next individual sampled belongs to a species not yet recorded. A deficit of 0.05 means coverage of 0.95, and the next individual has about a one-in-twenty chance of being a new species. Two samples at the same deficit have the same residual probability of discovery, however many individuals each took to reach it, which is what makes coverage a fair basis for comparison. Coverage-based rarefaction interpolates richness or any \({}^{q}D\) to a target coverage rather than a target sample size.

For plot-based spatial data, where the sampling unit is a site, the Chiu (2023) estimator uses incidence counts: \(Q_1\) and \(Q_2\), the numbers of species found in exactly one and two sites, and \(G_1\), the total abundance of the \(Q_1\) species. It writes the abundance of the undetected species as the Chao2 estimate of their number after \(t\) sites, \(\frac{t-1}{t} \frac{Q_1^2}{2 Q_2}\), times the mean abundance of a unique species, \(G_1 / Q_1\). With n_units = T the number of undetected species is the MoRE term (Chiu 2023, Methods in Ecology and Evolution, Eq. 5),

\[ \frac{t-1}{t} \frac{(1-w) Q_1^2}{Q_2 + w (Q_1 - Q_2)^+}, \]

with \(w = t / T\) and \((\cdot)^+\) the positive part. It vanishes at \(w = 1\), so the coverage reaches 1 once the accumulation has visited every unit.

Comparison with iNEXT

iNEXT popularised coverage-based rarefaction and extrapolation through Hill numbers (Chao et al. 2014), and spacc’s coverage route shares its statistical machinery. Both standardise communities by sample completeness and both use the same Chao-type asymptotic estimators when extrapolating past the observed data. iNEXT treats samples as exchangeable and accumulates them without geography. spacc accumulates sites in spatial order through its nearest-neighbour engine, so the coverage curve shows how completeness builds up across space. For spatially aggregated plot data, coverage = "chiu" is the more appropriate estimator than the individual-based default.

Practical guidance

  • Target a coverage of 0.90 to 0.95 for most comparisons. Below 0.85 the rare tail is too poorly sampled for the coverage estimate to be stable; at 0.99 the curves are near their asymptote and the comparison adds little over the estimators in Estimating total richness. When single sites already exceed the target, as in the example, interpolateCoverage() reads the value inside the first site, as a rarefaction of its individuals; move the target up when the comparison is about the accumulation across sites.

  • Limit extrapolation to about 2 to 3 times the observed sample size, or to a coverage no more than a few points past the observed maximum. Beyond that the Chao asymptotics extrapolate the rare tail well past the data.

  • Use at least 20 to 30 seeds in spaccCoverage() and spaccHillCoverage(), so the across-seed standard deviation is a usable uncertainty estimate rather than noise from too few starting points.

  • Coverage needs enough singletons and doubletons to estimate \(f_1\) and \(f_2\). A sample with fewer than about 10 species or no doubletons gives an unstable coverage estimate.

  • Each region must reach the shared target. Below about 20 sites with aggregated data, coverage often does not climb past 90%, and interpolateCoverage() returns NA for a target above the end of a curve. When one region cannot reach the target at all, compare at the highest coverage both attain, or fall back to site-based curves and say so.

Situation Method Why
Sites differ in number of individuals, abundances available spaccCoverage(), interpolateCoverage() Compares at equal completeness
Effort varies, only counts of individuals matter rarefy() Hurlbert expectation at matched \(n\)
Effort varies through plot count, presence/absence only mao_tau(), coleman() Standardises on number of sites
Several diversity orders at once spaccHillCoverage() Tracks \(q = 0, 1, 2\) and coverage together
Nearby sites are spatially redundant subsample(method = "grid"), spatialRarefaction() Reduces autocorrelation inflation
Richness past the observed completeness extrapolateCoverage() Chao asymptotic projection

Coverage is defined through \(f_1\), \(f_2\) and \(N\), so it requires genuine abundance counts. Presence/absence data have no singletons or doubletons in the abundance sense and the Chao-Jost estimator cannot be formed; sample-based rarefaction on sites (Rarefying to equal effort) is the tool there. Coverage is also unreliable when the sample is tiny or has no doubletons, since the denominator \((N-1) f_1 + 2 f_2\) then rests on a single frequency class. When sampling effort is already equal across sites, no standardisation is needed.

References

  • Chao, A. & Jost, L. (2012). Coverage-based rarefaction and extrapolation: standardizing samples by completeness rather than size. Ecology, 93, 2533-2547.

  • 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.

  • Chiu, C.-H. (2023). A sample-based estimator for sample coverage. Ecology, 104, e4099.

  • Chiu, C.-H. (2023). A species richness estimator for sample-based incidence data sampled without replacement. Methods in Ecology and Evolution, 14, 2482-2493.