Layers of the x and y coordinate (longitude and latitude, or the
coordinates of a projected grid) on the grid of the predictors. Fitted
together with the real predictors in any software, they let
compare_to_random() (coordinates = "^coord_") show which predictors
are more important than geographic position itself: a predictor that is
not may stand in for geography rather than the environment.
Value
A terra::SpatRaster with layers coord_x and coord_y.
Details
Status and limits. A preENM helper. Coordinates are a simple
reference for spatial structure; spatial eigenvectors capture finer
patterns. Masked to the cells where the first layer of env has
values.
References
Fourcade, Y., Besnard, A.G., Secondi, J. (2018) Paintings predict the distribution of species, or the challenge of selecting environmental predictors and evaluation statistics. Global Ecology and Biogeography 27, 245-256. doi:10.1111/geb.12684
Examples
sim <- simulate_enm_data(seed = 1)
cl <- coordinate_layers(sim$env)
names(cl)
#> [1] "coord_x" "coord_y"
