clamp.env | R Documentation |
Takes an emtools.model object and a set of environment layers and clamps the environment layers so that no variable falls outside of the range available in the training data.
clamp.env(model, env)
model |
An enmtools.model object. Alternatively the analysis.df component of an enmtools.model object. |
env |
A SpatRaster of environmental data. |
An enmtools model object containing species name, model formula (if any), model object, suitability raster, marginal response plots, and any evaluation objects that were created.
monticola.gam <- enmtools.gam(iberolacerta.clade$species$monticola, euro.worldclim[[c(1,5,9,13)]])
euro.clamped <- clamp.env(monticola.gam, euro.worldclim)
clamped.prediction <- predict(monticola.gam, euro.clamped)
terra::plot(clamped.prediction$suitability - monticola.gam$suitability)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.