
What 80 real plant-survey plots can—and cannot—tell us about biodiversity sampling
The question behind a biodiversity inventory
A biodiversity inventory rarely discovers species at a constant rate. Common plants tend to appear in early plots; plants confined to a few locations may only appear after many additional plots have been surveyed. This creates a practical question: how strongly does the number and ordering of plots affect the richness we record?
The example comes from a historical 2021 vegetation survey in Riverside, California. The original authors established 80 small plots in 40 adjacent pairs. Each plot was 3 by 1.5 metres, with a point-intercept protocol of 90 sampling positions. A hit means a species contacted the sampling wire, or was recorded as present without intersecting a transect; hits are not counts of individual plants. Multiple plants or species may contribute records at one point. The survey preceded the new litter-removal treatment, so the original raked/unraked assignment does not identify a treatment effect in this baseline analysis. Some plots were historically treated in an earlier study.
A species accumulation curve asks how many distinct taxa have been detected after including a given number of survey units. Sample-based rarefaction averages this curve over possible subsets of the observed survey units. We will compare a particular collection order with its exact finite-pool expectation, approximate that expectation using randomized orders, and check what changes when paired plots stay together.
1. Read and verify the original field measurements
The data consist of one row per plot, metadata identifying the year and the original treatment assignment, and one column per taxon containing nonnegative hit counts. First we separate species data from identifiers and check the experimental structure. All-zero columns are retained in the source table but do not count as detected 2021 taxa.
# 01 Import and verify the field observations
packages <- c("vegan", "ggplot2")
not_installed <- packages[!vapply(packages, requireNamespace, logical(1), quietly = TRUE)]
if (length(not_installed)) {
stop("Install the required R packages first: ", paste(not_installed, collapse = ", "))
}
input_file <- "01_data/riverside_plant_hits_2021.csv"
dictionary_file <- "01_data/species_code_dictionary.csv"
if (!file.exists(input_file) || !file.exists(dictionary_file)) {
stop("Run the script from the project root: one or more input files are missing.")
}
plots <- read.csv(input_file, check.names = FALSE, stringsAsFactors = FALSE)
dictionary <- read.csv(dictionary_file, stringsAsFactors = FALSE)
species_codes <- setdiff(names(plots), c("year", "plot", "treatment"))
if (!identical(names(plots)[1:3], c("year", "plot", "treatment")) ||
nrow(plots) != 80L || length(species_codes) != 22L ||
anyNA(plots) || anyDuplicated(plots$plot) ||
!all(plots$year == 2021L) ||
!all(plots$treatment %in% c("raked", "unraked")) ||
!all(vapply(plots[species_codes], is.numeric, logical(1)))) {
stop("Unexpected data structure; check the original 2021 CSV.")
}
hits <- as.matrix(plots[species_codes])
if (any(!is.finite(hits)) || any(hits < 0) || any(hits != floor(hits))) {
stop("Species hit counts must be finite, nonnegative integers.")
}
if (anyNA(match(species_codes, dictionary$species_code))) {
stop("Some species codes are missing from the source dictionary.")
}
pair_id <- sub("_[UL]$", "", plots$plot)
if (!all(grepl("_[UL]$", plots$plot)) ||
length(unique(pair_id)) != 40L || any(table(pair_id) != 2L)) {
stop("The expected 40 paired survey blocks could not be recovered.")
}
# All-zero species columns stay in the original CSV; exclude them only from the
# community matrix used to calculate observed richness.
detected_codes <- colSums(hits > 0) > 0
community <- hits[, detected_codes, drop = FALSE]
stopifnot(ncol(community) > 0L, all(rowSums(community > 0) > 0))2. Richness, incidence and recorded abundance are different quantities
A plot’s species richness is the number of taxa with at least one recorded hit, while the hit total counts all species contacts in that plot. Incidence indicates whether a taxon was observed in a plot, ignoring the number of hits. Species accumulation uses this plot-by-species detection information rather than assuming that one hit equals one individual plant.
# 02 Summarise richness, recorded hits and species incidence
plot_summary <- data.frame(
plot = plots$plot,
pair_id = pair_id,
original_assignment = plots$treatment,
hits = rowSums(hits),
richness = rowSums(hits > 0)
)
species_summary <- dictionary[match(species_codes, dictionary$species_code), ]
species_summary$plots_detected <- as.integer(colSums(hits > 0))
species_summary$total_hits <- as.integer(colSums(hits))
study_summary <- data.frame(
measure = c("Surveyed plots", "Paired blocks", "Species codes in source",
"Species recorded in 2021", "Species hits (not individuals)",
"Minimum plot richness", "Maximum plot richness"),
value = c(nrow(plots), length(unique(pair_id)), length(species_codes),
ncol(community), sum(hits), min(plot_summary$richness),
max(plot_summary$richness))
)
print(study_summary, row.names = FALSE)| Survey property | Observed value |
|---|---|
| Surveyed plots | 80 |
| Paired blocks | 40 |
| Species codes in source | 22 |
| Species recorded in 2021 | 13 |
| Species hits (not individuals) | 7866 |
| Minimum plot richness | 1 |
| Maximum plot richness | 8 |
For the 2021 survey, the table contains 80 plots, 40 paired blocks, and 13 detected taxa out of 22 source taxa. There are 7,866 recorded species hits. Because the field method can register multiple contacts, dividing those hits by 90 would not produce a valid count of independent plants.
3. Does a high hit total guarantee high richness?
# 03 Visualise detection richness against recorded hits
p_richness <- ggplot2::ggplot(plot_summary, ggplot2::aes(x = hits, y = richness)) +
ggplot2::geom_point(color = "#176f70", size = 2.7, alpha = 0.82) +
ggplot2::scale_y_continuous(breaks = 0:max(plot_summary$richness)) +
ggplot2::labs(
title = "More vegetation hits do not automatically mean more species",
subtitle = "Each dot is one 2021 field plot",
x = "Recorded species hits per plot (not plant individuals)",
y = "Detected species per plot"
) +
ggplot2::theme_minimal(base_size = 13) +
ggplot2::theme(plot.title.position = "plot", panel.grid.minor = ggplot2::element_blank())The observed plots contain 81–158 recorded hits but only 1–8 detected species per plot. Twelve of the 80 plots have a richness of just one species. For instance, plot E_1_L has 90 recorded hits but only one detected taxon, whereas A_1_U has 127 hits and eight taxa. The distinction is ecological: the same plant species can be encountered repeatedly at many sampling positions, inflating contacts without increasing the count of distinct species.
A single grass, Bromus diandrus (species code BRODIA), was detected in all 80 plots and accounted for 6,822 of the 7,866 species hits (86.7%). That concentration of recorded contacts is not a measurement of the percentage of individual plants belonging to this species. The figure therefore contrasts two valid but distinct measurements—frequency of contacts and observed plot richness—rather than proving that survey effort alone controls biodiversity.
4. Original-order accumulation versus rarefaction
For a fixed number of plots, there are many possible subsets of the 80 surveyed units. The collector curve adds plots in the recorded row order; its shape can change if those rows are rearranged. The first recorded plot already contains seven species, although the expected richness for any one uniformly selected observed plot is only 3.26 species. The exact curve calculates expected observed richness across all equally likely subsets of size k, conditional on these 80 plots. The random curve approximates the same expectation by shuffling plot order 999 times.
If taxon j occurs in f of the N observed plots, its contribution to expected richness after k plots is the probability that at least one of those f plots was included:
\[ E[S(k)] = \sum_{j=1}^{S_{\mathrm{obs}}} \left(1-\frac{\binom{N-f_j}{k}}{\binom{N}{k}}\right). \]
This is interpolation within the observed field plots. It is not a model for discovering species outside the original sampled area. One grass taxon occurs in all 80 recorded plots, so its presence indicator has zero variance. Before the exact calculation we exclude any such ubiquitous taxon from the variance computation and then add back its one guaranteed species for every nonempty subset; the collector and randomized curves use the complete detected-species matrix.
# 04 Compare original-order, exact and random accumulation
collector <- vegan::specaccum(community, method = "collector")
# BRODIA occurs in every recorded plot; its incidence has zero variance.
# Remove ubiquitous taxa only for vegan's exact variance calculation,
# then restore their deterministic +1 contribution to expected richness.
ubiquitous <- colSums(community > 0) == nrow(community)
exact <- vegan::specaccum(community[, !ubiquitous, drop = FALSE], method = "exact")
exact_expected <- as.numeric(exact$richness) + sum(ubiquitous)
set.seed(20261115)
random <- vegan::specaccum(community, method = "random", permutations = 999)
accumulation <- data.frame(
plots_sampled = as.integer(exact$sites),
collector = as.numeric(collector$richness),
exact_expected = exact_expected,
random_mean = as.numeric(random$richness),
random_sd = as.numeric(random$sd)
)
if (anyNA(accumulation) || any(!is.finite(as.matrix(accumulation))) ||
any(diff(accumulation$exact_expected) < -1e-8) ||
abs(tail(accumulation$exact_expected, 1) - ncol(community)) > 1e-7) {
stop("Accumulation curves failed their basic integrity checks.")
}
curve_lines <- rbind(
data.frame(plots_sampled = accumulation$plots_sampled,
richness = accumulation$collector, curve = "Observed plot order"),
data.frame(plots_sampled = accumulation$plots_sampled,
richness = accumulation$exact_expected, curve = "Exact expected"),
data.frame(plots_sampled = accumulation$plots_sampled,
richness = accumulation$random_mean, curve = "999 random orders")
)
p_accumulation <- ggplot2::ggplot() +
ggplot2::geom_ribbon(
data = accumulation,
ggplot2::aes(x = plots_sampled,
ymin = pmax(0, random_mean - random_sd),
ymax = random_mean + random_sd),
fill = "#aac9d6", alpha = 0.42
) +
ggplot2::geom_line(
data = curve_lines,
ggplot2::aes(x = plots_sampled, y = richness, color = curve,
linetype = curve), linewidth = 1.05
) +
ggplot2::scale_color_manual(values = c(
"Observed plot order" = "#d57b27",
"Exact expected" = "#176f70",
"999 random orders" = "#4456aa"
)) +
ggplot2::scale_linetype_manual(values = c(
"Observed plot order" = "dashed",
"Exact expected" = "solid",
"999 random orders" = "dotted"
)) +
ggplot2::labs(
title = "Species accumulation depends on sampling order",
subtitle = "Blue shading: ±1 SD across random orderings, not a field-survey confidence interval",
x = "Number of field plots added", y = "Cumulative detected species",
color = NULL, linetype = NULL
) +
ggplot2::theme_minimal(base_size = 13) +
ggplot2::theme(plot.title.position = "plot", legend.position = "bottom")
At the last observed plot, every permutation has encountered the same recorded pool of 13 taxa. Any band from reordering these same plots therefore narrows to zero at full effort. That convergence tells us nothing by itself about undetected species outside the dataset.
5. How much of the recorded richness appears at smaller efforts?
The next table compares expected richness at selected efforts. The final column is the difference between the observed 80-plot pool and the expected richness at that smaller effort; it is not a predicted number of new taxa in future, unsampled plots. The random-versus-exact difference checks only the Monte Carlo approximation, not scientific sampling bias.
# 05 Compare expected richness at recorded survey effort levels
checkpoints <- c(1L, 5L, 10L, 20L, 40L, 60L, 80L)
effort_summary <- accumulation[match(checkpoints, accumulation$plots_sampled), ]
effort_summary$expected_additional_species_within_80 <-
ncol(community) - effort_summary$exact_expected
random_exact_gap <- max(abs(accumulation$random_mean - accumulation$exact_expected))
cat(sprintf("Maximum random-versus-exact difference across effort levels: %.4f species\n",
random_exact_gap))
print(effort_summary, row.names = FALSE)| Plots | Collector | Exact expected | Random mean | Random SD | Additional in 80 | |
|---|---|---|---|---|---|---|
| 1 | 1 | 7 | 3.26 | 3.31 | 1.68 | 9.74 |
| 5 | 5 | 9 | 6.27 | 6.28 | 1.67 | 6.73 |
| 10 | 10 | 10 | 8.04 | 8.06 | 1.62 | 4.96 |
| 20 | 20 | 11 | 10.05 | 10.04 | 1.26 | 2.95 |
| 40 | 40 | 12 | 11.86 | 11.86 | 0.84 | 1.14 |
| 60 | 60 | 13 | 12.62 | 12.64 | 0.55 | 0.38 |
| 80 | 80 | 13 | 13.00 | 13.00 | 0.00 | 0.00 |
A random set of 20 of the already observed plots has an exact expected richness of 10.05 species, compared with 11 species from the first 20 plots in the recorded order. The difference of 0.95 species is attributable to the choice of ordering, not to different underlying plant populations. The 999 random-order means track the exact expectation closely; the largest absolute discrepancy across the 80 sampled-effort values is 0.105 species.
For larger efforts, the exact expected richness is 11.86 species at 40 plots and 12.62 at 60 plots. Those quantities represent approximately 91.2% and 97.1% of the 13 species detected somewhere in the recorded 80 plots. They are not estimated percentages of all species in the wider habitat.
The declining slope is expected when selecting without replacement from a fixed finite pool. At plot 80 all recorded units have been used, so the endpoint must equal 13; that mathematical endpoint does not establish an ecological sampling-completeness threshold for unsurveyed areas. At 20 plots, the shaded random-order band has a standard deviation of approximately 1.26 species. It describes order-to-order spread conditional on the existing data, not a 95% field-survey confidence interval.
6. What happens when the original field pairs remain together?
The survey was designed as 40 paired blocks, not 80 independent random points distributed across a region. We can therefore compare two finite-pool selection rules at the same number of included plots: selecting any 2k individual plots, versus selecting k entire pairs. The difference is a sensitivity to which units we allow to enter together, not a test proving that the true sampling distribution has been corrected.
# 06 Sensitivity to the original 40 paired field blocks
block_hits <- rowsum(community, group = pair_id, reorder = TRUE)
block_ubiquitous <- colSums(block_hits > 0) == nrow(block_hits)
block_exact <- vegan::specaccum(block_hits[, !block_ubiquitous, drop = FALSE],
method = "exact")
block_expected <- as.numeric(block_exact$richness) + sum(block_ubiquitous)
pair_sensitivity <- data.frame(
plots_sampled = 2L * as.integer(block_exact$sites),
independent_plot_expected = accumulation$exact_expected[
2L * as.integer(block_exact$sites)],
complete_pair_expected = block_expected
)
if (abs(tail(pair_sensitivity$complete_pair_expected, 1) - ncol(community)) > 1e-7) {
stop("Block aggregation must preserve the entire observed species pool.")
}
pair_curves <- rbind(
data.frame(plots_sampled = pair_sensitivity$plots_sampled,
richness = pair_sensitivity$independent_plot_expected,
sampling_plan = "Any 2k plots"),
data.frame(plots_sampled = pair_sensitivity$plots_sampled,
richness = pair_sensitivity$complete_pair_expected,
sampling_plan = "k complete pairs")
)
p_pairs <- ggplot2::ggplot(
pair_curves,
ggplot2::aes(x = plots_sampled, y = richness, color = sampling_plan)
) +
ggplot2::geom_line(linewidth = 1.15) +
ggplot2::scale_color_manual(values = c(
"Any 2k plots" = "#176f70", "k complete pairs" = "#c06d29")) +
ggplot2::labs(
title = "Sampling complete pairs changes the finite-pool expectation",
subtitle = "Both curves summarize the same 80 observed plots",
x = "Field plots included (two plots per pair)",
y = "Expected detected species", color = NULL
) +
ggplot2::theme_minimal(base_size = 13) +
ggplot2::theme(plot.title.position = "plot", legend.position = "bottom")At equal effort of two plots, unrestricted selection has an expectation of 4.43 species, while selecting one complete field pair has an expectation of 4.08. At 20 plots, the two expectations are 10.05 and 9.94, respectively. The gap is small by 40 plots and the pair-based expectation is even slightly higher around 60 plots; paired selection is not always lower. Both reach 13 at 80 plots.
The contrast reflects the selection rule and the observed allocation of species among neighboring plot pairs; it is not a hypothesis test or an estimated spatial correlation length. Nearby blocks might also resemble one another through environmental similarity, so inference to a larger landscape would require a separately justified spatial sampling design.
7. Why rarely encountered taxa matter
Species restricted to one or two plots are easily missed when effort is low. Their frequency gives context for the shape of the curve, but it is not a direct estimate of the number of unseen species. Here we record how many species appear in one plot or two plots, and how many taxa in the full multi-year source list were not recorded in 2021.
# 07 Examine how often each species was detected
observed_species <- species_summary[species_summary$plots_detected > 0, ]
observed_species$label <- paste0(observed_species$species_name,
" (", observed_species$species_code, ")")
incidence_diagnostics <- data.frame(
measure = c("Species in exactly one plot", "Species in exactly two plots",
"Species never detected in 2021"),
value = c(sum(species_summary$plots_detected == 1L),
sum(species_summary$plots_detected == 2L),
sum(species_summary$plots_detected == 0L))
)
p_incidence <- ggplot2::ggplot(
observed_species,
ggplot2::aes(x = reorder(label, plots_detected), y = plots_detected)
) +
ggplot2::geom_col(fill = "#176f70", width = 0.75) +
ggplot2::coord_flip() +
ggplot2::labs(
title = "Species found in few plots are easily missed",
subtitle = "Incidence is the number of 2021 plots with at least one hit",
x = NULL, y = "Plots where species was detected"
) +
ggplot2::theme_minimal(base_size = 12) +
ggplot2::theme(plot.title.position = "plot", panel.grid.major.y = ggplot2::element_blank())
print(incidence_diagnostics, row.names = FALSE)| Species incidence category | Observed taxa |
|---|---|
| Species in exactly one plot | 1 |
| Species in exactly two plots | 2 |
| Species never detected in 2021 | 9 |
The 2021 inventory contains 1 species observed in just one plot—Lupinus sparsiflorus—and 2 observed in exactly two plots—Croton setigerus and Phacelia distans. Such localized detections explain why expected accumulation may continue increasing even after the common grasses and forbs have already been found. In contrast, Bromus diandrus is ubiquitous and its presence contributes one species to every nonempty subset.
The remaining 9 all-zero columns represent taxa included in the authors’ broader three-year species list but not detected in this 2021 subset. Their absence from the sample does not prove absence from the habitat, nor does the incidence plot identify the number of completely unknown species outside the recorded survey.
8. What can the sampling curves establish?
Taken together, the four figures answer a specific statistical question: how quickly do the 13 detected species appear when selections are made from the observed 2021 plots? They do not determine the true number of species in other seasons or unvisited locations. Nor does a nearly flat curve, by itself, establish that further field effort has no ecological value. The analysis retains a reproducible record of survey summaries and numerical curve coordinates so that its visual comparisons can be checked and adapted to other field studies.
Scientific interpretation and sampling limits
This study is a finite-pool richness comparison for a historical 2021 baseline survey. The first 20 recorded plots contained 11 species, whereas rarefaction across all possible 20-plot subsets gives an expected 10.05; the difference illustrates order sensitivity, not sampling error in the original field observations. The random-order spread is conditional on known plots, and the paired-block sensitivity captures just one aspect of the actual field design.
In particular, all eighty of the observed plots are included at the final endpoint, so the resulting 13-species total is necessarily exact for that recorded set. It provides no direct estimate of the regional species pool, long-term species turnover, treatment effects or the chance that an unsurveyed plot would contain a new taxon. Addressing those questions requires new sampling or additional defensible estimators and assumptions.
For a weed-science, pollinator or soil-biodiversity thesis, begin by defining the true sampling unit, documenting spatial or temporal clustering, using consistent effort per plot, and choosing a richness measure appropriate to the observation protocol. If plot effort differs substantially, consider additional effort-standardization designs rather than treating species hits as individual organisms.
Data source and references
- Ramachandran, A. et al. (2024). Plant community composition in response to litter removal in Riverside, California, USA, 2021–2023. Dryad. https://doi.org/10.5061/dryad.3xsj3txrj. Data distributed under CC0; this analysis uses the historical 2021 baseline and the authors’ processed species-hit matrix.
- Ramachandran, A. et al. (2024). Litter removal increases plant diversity by promoting both native and exotic forbs in heavily invaded coastal sage scrub in Southern California, U.S.A. Restoration Ecology. https://doi.org/10.1111/rec.14340.
- Oksanen, J. and contributors.
vegan::specaccum()reference. Documentation of collector, random and exact sample accumulation methods. - Colwell, R. K. et al. (2012). Models and estimators linking individual-based and sample-based rarefaction, extrapolation and comparison of assemblages. Journal of Plant Ecology, 5, 3–21.
Comments
Post a Comment