Builds a map of biogeographical ignorance from the records themselves (e.g. a GBIF download of the reference group), following the components of Tessarolo et al. (2021). Each record gets a quality from the components available:
Usage
record_ignorance(
records,
template,
species = NULL,
species_col = NULL,
year = NULL,
half_life = NULL,
reliability = NULL,
reliability_col = NULL,
uncertainty = NULL,
min_records = 50,
radius_km = 50,
env = NULL,
suitability = NULL,
threshold = 0.5,
suitability_threshold = 0.5,
coords = NULL,
points_crs = "EPSG:4326",
crs = NULL
)Arguments
- records
Records of the reference group (including the focal species): a data.frame or CSV path (e.g. a GBIF download), with coordinates and the other columns named below.
- template
A raster defining the grid (e.g. 10 km cells; the result has one value per cell). Keep it coarse: every cell is interpolated.
- species
Optional name of the focal species (a value of the species column).
- species_col
Column with species names (default:
species, elsescientificName).- year
Column with the year of collection (default
yearif present;NULLorFALSEto ignore age).- half_life
Age (years) at which the age component falls to 0.5.
- reliability
Optional taxonomic reliability: a column with values 0-1, a named vector translating the values of
reliability_col, or ataxon_complexity()result (one weight per species, from its number of synonyms and infraspecific taxa).- reliability_col
Column translated by a named
reliability.- uncertainty
Column with the coordinate uncertainty in metres (default
coordinateUncertaintyInMetersif present;FALSEto ignore).- min_records
Fewest records in a cell for its completeness.
- radius_km
Distance within which empty cells are interpolated.
- env
Optional predictor rasters: empty cells are then interpolated with the spatio-environmental distance of Tessarolo et al. (2021): geographic and environmental (standardised predictors) distances, each divided by its largest value in the area, combined as
space^0.5 x environment^0.5.- 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).- coords, points_crs
Coordinate columns and their CRS (detected by default).
- crs
Deprecated: the former name of
points_crs, still accepted with a warning.
Value
An ignorance_map (see ignorance_map()); settings lists the
components used, and records the quality of each record.
Details
Completeness of the inventory of its cell, from the species accumulation curve:
1 - f1 / N, whereNis the number of records of the group in the cell andf1the number of species recorded only once.f1 / Nis the expected slope at the end of a randomised accumulation curve, the quantity Tessarolo et al. averaged over 100 randomisations. Cells with fewer thanmin_recordsrecords have completeness 0 (Tessarolo et al. used 50 individuals).Age (
year): a Gaussian decay with the time since the record, 1 for the most recent record;half_lifeis the age at which it falls to 0.5 (default: half of the period spanned by the records, so the oldest records are the least informative, as in Tessarolo et al.).Taxonomic reliability (
reliability): a value from 0 to 1 per record, e.g. by identifier class (Tessarolo et al. used 1, 0.9 and 0.75 for taxonomists, experts and amateurs). Give a column, or a named vector translating the values of a column (e.g.basisOfRecordor a class of identifier), or one weight per species from the taxonomic complexity of its name (taxon_complexity(): the number of synonyms and of subspecies and varieties in World Flora Online or another backbone). That proxy is not published or validated; if you use it, say so.Precision (
uncertainty, e.g.coordinateUncertaintyInMeters): not in Tessarolo et al.;min(1, (cell size / (2 x uncertainty))^2), roughly the share of the uncertainty circle that falls in the cell.
As in Tessarolo et al., the components of each record are added and
rescaled to 0-1 over all records, and ignorance is 1 minus that. A cell
with records of the focal species takes the ignorance of its best one;
a cell with records of other species only, the mean over species of
their best record (records of the group there make an absence of the
focal species informative). Cells without records are interpolated by
inverse squared distance from the cells with records within
radius_km (Tessarolo et al. used the range of spatial autocorrelation
of the predictors, see suggest_block_size()); farther cells get
ignorance 1. The distance is geographic or, with env, the
spatio-environmental distance of Tessarolo et al. (geographic and
environmental distances, each rescaled to 0-1, combined as
space^0.5 x environment^0.5), so that records from similar
environments inform an empty cell more. As in Tessarolo et al., when a
focal species is given, the cells with its records carry half of the
weight.
What to vary. half_life, min_records and the reliability weights:
read the broad pattern of the map, which should be stable across them.
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
Examples
set.seed(1)
rec <- data.frame(lon = runif(600, 10, 12), lat = runif(600, 50, 51),
species = sample(paste0("sp", 1:30), 600, TRUE),
year = sample(1950:2020, 600, TRUE))
rec <- rec[rec$lon < 11.5, ] # the east is unrecorded
grid <- terra::rast(xmin = 10, xmax = 12, ymin = 50, ymax = 51,
resolution = 0.1, crs = "EPSG:4326")
ig <- record_ignorance(rec, grid, species = "sp1", min_records = 5,
radius_km = 20)
ig
#> Biogeographical ignorance (from 454 records: completeness, age; interpolated within 20 km)
#>
#> IN SHORT
#> - 86% of the cells have an ignorance above 0.5: there, the records of the
#> reference group are few, old, imprecise or from incomplete inventories,
#> so missing records of the species say little.
#>
#> Ignorance 0 = well recorded, 1 = nothing recorded (Tessarolo et al. 2021: per
#> record, the components are added and rescaled to 0-1 over all records; a cell
#> takes its best record of the focal species, or the mean over the other
#> species; empty cells are interpolated within 20 km). The threshold of 0.5 is
#> a preENM default, not from the literature.
plot_ignorance(ig)
