Schoener's D, Warren's I and the Spearman rank correlation between
suitability rasters (ENMTools: Warren et al. 2008, 2021): each raster is
scaled to sum to 1 over the cells where all have values. D and I measure
how similar the amounts of suitability are cell by cell, i.e. where the
groups could meet in the mapped area; the correlation measures whether
they respond in the same direction. They depend on the extent mapped;
to compare niches, use niche_overlap() in environmental space.
Arguments
- x
Suitability rasters (terra::SpatRaster or files), two or more layers.
- n_sample
Cells sampled for the correlation.
- seed
Seed for the cell sample of the rank correlation.
References
Warren, D.L., Glor, R.E., Turelli, M. (2008) Environmental niche equivalency versus conservatism: quantitative approaches to niche evolution. Evolution 62, 2868-2883. doi:10.1111/j.1558-5646.2008.00482.x
Warren, D.L. et al. (2021) ENMTools 1.0: an R package for comparative ecological biogeography. Ecography 44, 504-511. doi:10.1111/ecog.05485
Examples
sim <- simulate_enm_data(seed = 1)
prediction_overlap(sim$models[[c("GLM", "GBM", "Random")]])
#> layer1 layer2 D I rho
#> 1 GLM GBM 0.8969196 0.9828267 0.80693541
#> 2 GLM Random 0.7121351 0.9149561 -0.03375677
#> 3 GBM Random 0.6849909 0.8857514 -0.03032089
