Skip to contents

Where few records of any species have been made, the absence of records of your species says little, and a model's prediction there rests on extrapolation from elsewhere. A map of biogeographical ignorance shows this uncertainty of the data next to the prediction (Tessarolo et al. 2021), so that low-confidence areas of a projection can be flagged.

Usage

ignorance_map(
  effort,
  layer = "n_records",
  method = c("half", "log", "linear"),
  half = 1,
  index = FALSE,
  radius_km = NULL,
  suitability = NULL,
  threshold = 0.5,
  suitability_threshold = 0.5
)

Arguments

effort

Effort raster(s), e.g. from gbif_effort_rasters(), or a path.

layer

The layer with the effort (default "n_records", else the first).

method

"half", "log" or "linear".

half

The effort O that halves ignorance (method = "half").

index

Use the species observation index n_records / n_species (needs both layers).

radius_km

Optional distance (km) within which effort counts for neighbouring cells.

suitability

Optional suitability raster (or path) to annotate.

threshold

Ignorance above which a cell counts as not known.

suitability_threshold

Suitability at or above which a cell counts as suitable (for class).

Value

A list of class ignorance_map: raster (layer ignorance and, with suitability, suitability, suitability_known and class), summary (share of cells and of the suitable area above the ignorance threshold) and settings.

Details

Ignorance score. The effort of each cell (records of a reference group, e.g. from gbif_effort_rasters()) is turned into a score from 0 (well recorded) to 1 (nothing recorded), with one of the algorithms of Ruete (2015), on which maps of biogeographical ignorance build:

  • "half" (default): I = O / (N + O), where N is the effort and O (half) the effort that halves ignorance; it does not depend on the most recorded cell. With O = 1 one record already halves it; for a whole plant or bird group, a larger O (e.g. 10 or 50) is more realistic.

  • "log": I = 1 - log(N + 1) / log(Nmax + 1); relative to the most recorded cell, separating "few" from "enough" records.

  • "linear": I = 1 - N / Nmax; only for effort without a long tail.

With index = TRUE the effort is the species observation index n_records / n_species (records per species; Ruete 2015), less inflated where a few species are recorded very often. radius_km spreads the effort of each cell to its neighbours within that distance before scoring (information decays with distance; Tessarolo et al. 2021 used the range of spatial autocorrelation of the predictors, which suggest_block_size() estimates).

Limits. The full maps of Tessarolo et al. (2021) also weigh each record by its taxonomic reliability, its age and the completeness of the inventory of the cell, and interpolate between cells in geographic and environmental space; that needs record-level data. This function uses the effort counts only.

With a suitability raster (suitability), the ignorance is brought to its grid and the result adds suitability_known (the suitability where ignorance is at most threshold, NA elsewhere) and class: the four combinations of suitable / unsuitable (at suitability_threshold) and known / ignorant (at threshold), as in the joint maps of prediction and ignorance of Tessarolo et al. (2021).

References

Tessarolo, G., Ladle, R.J., Lobo, J.M., Rangel, T.F., Hortal, J. (2021) Using maps of biogeographical ignorance to reveal the uncertainty in distributional data hidden in species distribution models. Ecography 44, 1743-1755. doi:10.1111/ecog.05793

Ruete, A. (2015) Displaying bias in sampling effort of data accessed from biodiversity databases using ignorance maps. Biodiversity Data Journal 3, e5361. doi:10.3897/BDJ.3.e5361

Examples

tab <- data.frame(lat_bin = rep(445:454, each = 10),
                  lon_bin = rep(95:104, 10),
                  n_records = rpois(100, 20) * rep(0:1, 50),
                  n_species = 5, n_target = 0)
eff <- gbif_effort_rasters(tab, c(9.5, 10.5, 44.5, 45.5))
ig <- ignorance_map(eff, half = 10)
ig
#> Biogeographical ignorance (half-ignorance, O = 10)
#> 
#> IN SHORT
#> - 51% of the cells have an ignorance above 0.5: there, the records of the
#>   reference group are few, so missing records of the species say little.
#> 
#> Ignorance 0 = well recorded, 1 = nothing recorded (Ruete 2015). The threshold
#> of 0.5 is a preENM default, not from the literature. Effort counts only:
#> taxonomic reliability, age of records and completeness (Tessarolo et al.
#> 2021) can be added from the records with record_ignorance().
suit <- terra::init(eff[[1]], "x") - 9.5
ig2 <- ignorance_map(eff, half = 10, suitability = suit)
plot_ignorance(ig2)