speciesLisa | R Documentation |
Given a level of positional uncertainty (defined as a distance), this function calculates different statistics of local indicator of spatial association (LISA) in predictors (explanatory variables, defined as a raster object) at each species occurrence location (defined as a SpatialPoints object). According to Naimi et al. 2012, this can be used to understand whether positional uncertainty at which species locations are likely to affect predictive performance of species distribution models.
speciesLisa(x, y, uncertainty, statistic="K1",weights)
x |
explanatory variables (predictors), defined as a raster object ( |
y |
species occurrence points, defined as a |
uncertainty |
level of positional uncertainty, defined as a number (distance) |
statistic |
a character string specifying the LISA statistic that should be calculated. This can be one of "I", "c", "G", "G*", and "K1". Default is "K1" |
weights |
a numeric vector specifying the relative importance of explanatory variables in species distribution models (the first value in the |
This function calculates a LISA statistic for each explanatory variable at each species point. Although several statistics including local Moran's I ("I"), local Geary's c ("c"), local G and G* ("G" and "G*"), and local K1 statistics, can be calculated, according to Naimi et al. (2012), "K1" statistic (default) is recommended. This function returns a speciesLISA
object, which includes species occurrence data, LISA statistic for each predictor at species locations, and an aggregated LISA statistic (a single LISA) at each species location, given the variable impotances. If weights in not specified, the equal weights (i.e. equal importance for explanatory variables) will be considered.
speciesLISA
Babak Naimi naimi.b@gmail.com
https://www.biogeoinformatics.org/
IF you used this method, please cite the following article for which this package is developed:
Naimi, B., Hamm, N.A.S., Groen, T.A., Skidmore, A.K., and Toxopeus, A.G. 2014. Where is positional uncertainty a problem for species distribution modelling?, Ecography 37 (2): 191-203.
lisa
## Not run:
file <- system.file("external/predictors.tif", package="usdm")
r <- rast(file) # reading a RasterBrick object including 4 rasters in the Netherlands
r
plot(r) # visualize the raster layers
sp.file <- system.file("external/species_nl.shp", package="usdm")
sp <- vect(sp.file)
splisa <- speciesLisa(x=r,y=sp,uncertainty=15000,weights=c(0.22,0.2,0.38,0.2))
splisa
plot(splisa)
bnd.file <- system.file("external/boundary.shp", package="usdm")
bnd <- vect(bnd.file) # reading the boundary map
plot(splisa,bnd)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.