The usual end of a modelling workflow is a suitability map; what an
assessment needs are the measures of the range derived from it: its
extent and occupancy as used by the IUCN Red List (criterion B), its area
and its landscape structure (Curd et al. 2023). Today these are obtained
with ConR (Dauby et al. 2017) or by hand in a GIS. range_metrics()
computes them from binary maps, under every threshold rule given, and
reports how much they depend on the rule.
Usage
range_metrics(
x,
thresholds = NULL,
model = NULL,
occurrences = NULL,
occupied = FALSE,
aoo_km = 2,
threat_km = 10,
shifts = 4,
baseline = 1,
equal_area = NULL,
rescale = TRUE,
coords = NULL,
points_crs = "EPSG:4326",
eoo_concave = NULL,
crs = NULL
)Arguments
- x
Binary or continuous prediction rasters (terra::SpatRaster or file paths): one layer per projection.
- thresholds
For continuous input: a
thresholds()result or a named numeric vector (names = rules).- model
For a
thresholds()result of several models, the model to use.- occurrences
Optional records (data.frame with coordinates,
sf, SpatVector or CSV path), foroccupiedand for the EOO of the records themselves (settings$EOO_records_km2, the minimum convex polygon of the occurrences, which is what IUCN assessments usually report; the EOO of the metrics is that of the predicted suitable area).- occupied
Keep only patches containing at least one record.
- aoo_km
Side of the AOO grid (km).
- threat_km
Side of the grid of locations (km).
- shifts
Number of grid origins tried per axis.
- baseline
The projection (layer name or number) changes are computed from.
- equal_area
Optional equal-area CRS for EOO, AOO and locations (default: a Lambert azimuthal equal-area projection centred on the raster).
- rescale
For continuous input, bring the predictions to the 0-1 scale of the thresholds (0-100 or 0-1000 are divided; see
extract_predictions()).- coords
Optional names of the x/longitude and y/latitude columns when points are tabular. Detected automatically if
NULL.- points_crs
CRS of tabular coordinates (default WGS84,
"EPSG:4326").- eoo_concave
Optional ratio (0-1) for a second, concave EOO (
EOO_concave_km2): the concave hull of the suitable cells (sf::st_concave_hull(), smaller = tighter; e.g. 0.3), widened by half a cell, kept between the AOO and the convex EOO. The minimum convex polygon of the IUCN overstates disjunct and fragmented ranges, and a concave (alpha-type) hull is the usual refinement (Burgman & Fox 2003); it is not the IUCN measure, so report it besideEOO_km2.NULL(default) = not computed.- crs
Deprecated: the former name of
points_crs, still accepted with a warning.
Value
A list of class range_metrics: metrics (one row per
projection and rule), change (with several projections: absolute and
relative change of each metric from the baseline, per rule), patches
(area of every patch), categories (the criterion-B thresholds met by
EOO, AOO and locations) and settings.
Details
Input. Binary rasters (1 = suitable, 0 = unsuitable; one layer per
projection, e.g. present and future), or continuous predictions with
thresholds: a thresholds() result (all its rules are used) or a named
vector, e.g. c(maxTSS = 0.42, p10 = 0.31). Each layer is a projection;
each projection is binarised under each rule.
Metrics (per projection and rule):
area_km2: total suitable area.EOO_km2, extent of occurrence: the area of the minimum convex polygon around the suitable cells, in an equal-area projection; as in the IUCN guidelines, it is set to the AOO when smaller. A minimum convex polygon includes unsuitable gaps and grows with the extent of the sampling, so it overstates the range of a fragmented or disjunct distribution (Burgman & Fox 2003); read it as the IUCN measure, not as the area occupied.AOO_km2, area of occupancy: the number of cells of anaoo_kmgrid (2 x 2 km, the IUCN standard) that contain suitable area, times their area, in an equal-area projection. Cells coarser than the grid are subdivided first. The grid starts at the lower-left edge of the suitable cells and is shifted (shiftspositions per axis); the smallest count is kept, as ConR does for locations.locations: the number of cells of athreat_kmgrid (the extent of a single threatening event; e.g. 10 km, Dauby et al. 2017) containing suitable area, also minimised over grid origins. This is a proxy: an IUCN location is defined by a single threatening event, which a grid can only approximate. EOO and AOO follow the IUCN definitions; the landscape metrics below are general range metrics, not IUCN criteria.Landscape structure (Curd et al. 2023):
n_patches(8-neighbour connected suitable cells),mean_patch_km2,median_patch_km2,largest_patch_km2,largest_patch_index(largest patch as a percentage of the landscape, all cells with values),edge_density(m of edge between suitable and unsuitable cells per ha of landscape, as in FRAGSTATS),mean_nn_km(mean distance from each patch to the nearest other patch, edge to edge) and, for continuous input,mean_patch_suitability.
Threshold sensitivity. AOO and EOO under different binarisation rules can cross Red List thresholds, so the category a map supports may depend on the rule rather than on the species. The printout reports the range of each metric over the rules and whether the criterion-B thresholds they meet differ.
Occupied patches. The predicted suitable area is not the occupied
area: suitable but unoccupied areas inflate EOO and AOO. With
occupied = TRUE only patches containing at least one record
(occurrences) are kept, closer to the IUCN practice of estimating
occupancy from known, inferred or projected sites.
Red List thresholds (IUCN 2012, criterion B): EOO below 100, 5000 and 20000 km^2 (CR, EN, VU; B1), AOO below 10, 500 and 2000 km^2 (B2), and 1, at most 5 and at most 10 locations (condition a). Meeting a threshold is not a listing: criterion B also needs at least two of the conditions (a) to (c), and an assessment needs evidence on threats and trends that a model cannot give.
Projected changes. With several projections, the change of every
metric from the baseline is reported. Species distribution models
foresaw fewer than a third of the extirpations observed over a century
of climate and land-use change, missed many colonisations, and predicted
extirpations that had not happened where change was largest (Auffret et
al. 2024): projected range changes are uncertain in both directions.
Memory: the suitable cells are read (with their coordinates); for large rasters at fine resolution aggregate first, e.g. to 1 km.
References
Burgman, M.A., Fox, J.C. (2003) Bias in species range estimates from minimum convex polygons: implications for conservation and options for improved planning. Animal Conservation 6, 19-28. doi:10.1017/S1367943003003044
Curd, A., Chevalier, M., Vasquez, M., Boye, A., Firth, L.B., Marzloff, M.P., Bricheno, L.M., Burrows, M.T., Bush, L.E., Cordier, C., Davies, A.J., Green, J.A.M., Hawkins, S.J., Lima, F.P., Meneghesso, C., Mieszkowska, N., Seabra, R., Dubois, S.F. (2023) Applying landscape metrics to species distribution model predictions to characterize internal range structure and associated changes. Global Change Biology 29, 631-647. doi:10.1111/gcb.16496
Dauby, G., Stevart, T., Droissart, V., Cosiaux, A., Deblauwe, V., Simo-Droissart, M., Sosef, M.S.M., Lowry, P.P., Schatz, G.E., Gereau, R.E., Couvreur, T.L.P. (2017) ConR: an R package to assist large-scale multispecies preliminary conservation assessments using distribution data. Ecology and Evolution 7, 11292-11303. doi:10.1002/ece3.3704
Omar, K., Elgamal, I. (2021) IUCN Red List and species distribution models as tools for the conservation of poorly known species: a case study of endemic plants Micromeria serbaliana and Veronica kaiseri in South Sinai, Egypt. Kew Bulletin 76, 477-496. doi:10.1007/s12225-021-09953-4
Auffret, A.G., Nenzen, H.K., Polaina, E. (2024) Underprediction of extirpation and colonisation following climate and land-use change using species distribution models. Diversity and Distributions 30, e13834. doi:10.1111/ddi.13834
IUCN (2012) IUCN Red List Categories and Criteria: Version 3.1. Second edition. IUCN, Gland and Cambridge.
Examples
sim <- simulate_enm_data(seed = 1)
tab <- extract_predictions(sim$models[["GLM"]], sim$presence,
sim$absence)
th <- thresholds(tab, rules = c("maxSSS", "p10", "maxMCC"))
rm <- range_metrics(sim$models[["GLM"]], th, threat_km = 50)
#> The raster is in longitude/latitude: EOO, AOO and locations are computed in a Lambert azimuthal equal-area projection centred on it.
rm
#> Range metrics: 1 projection(s) x 3 threshold rule(s)
#>
#> IN SHORT
#> - GLM: suitable area 254 711 km2 (maxMCC) to 302 503 km2 (maxSSS); EOO 293
#> 755 km2 (p10) to 325 076 km2 (maxSSS); AOO 253 688 km2 (maxMCC) to 298
#> 040 km2 (maxSSS); 133 locations (p10) to 145 locations (maxSSS); 3 to 12
#> patches.
#> - EOO and AOO are computed from the whole predicted suitable area, which is
#> larger than the occupied area; occupied = TRUE keeps only patches with
#> records, closer to IUCN practice.
#>
#> rule threshold area_km2 EOO_km2 AOO_km2 locations n_patches
#> maxSSS 0.8 302503.2 325076.3 298040 145 3
#> p10 0.9 255571.1 293755.5 254456 133 11
#> maxMCC 0.9 254710.8 293755.5 253688 133 12
#> largest_patch_index edge_density mean_nn_km
#> 66.0 0.1 13.0
#> 55.5 0.2 8.9
#> 55.3 0.2 8.8
#>
#> EOO = minimum convex polygon of the suitable cells; AOO = 2 x 2 km grid cells
#> with suitable area; locations = 50 km grid cells (the extent of one threat);
#> both grids are placed to give the fewest cells, in an equal-area projection.
#> largest_patch_index = largest patch, % of the landscape; edge_density = m of
#> edge per ha of landscape; mean_nn_km = mean distance to the nearest other
#> patch. IUCN (2012) criterion B: EOO < 100 / 5000 / 20000 km2 and AOO < 10 /
#> 500 / 2000 km2 (CR / EN / VU), locations 1 / <= 5 / <= 10; a threshold met is
#> not a listing, which also needs conditions (a)-(c) and evidence on threats.
#>
#> A preENM sensitivity analysis: how much the result depends on the threshold
#> rule. The others are listed in ?sensitivity_analyses.
