marginal.plots {ENMTools} | R Documentation |
marginal.plots Plots the marginal response of a model to an environmental variable with all other variables held at their mean in env
Description
marginal.plots Plots the marginal response of a model to an environmental variable with all other variables held at their mean in env
Usage
marginal.plots(model, env, layer, standardize = TRUE, verbose = FALSE)
Arguments
model |
An enmtools model object |
env |
A SpatRaster object containing environmental data |
layer |
The name of the layer to plot |
standardize |
Whether to set the maximum of the response function to 1, or to instead use the raw values. |
verbose |
Controls printing of messages |
Value
results A plot of the marginal response of the model to the environmental variable.
Examples
cyreni.glm <- enmtools.glm(iberolacerta.clade$species$cyreni,
f = pres ~ bio1 + bio12, euro.worldclim)
marginal.plots(cyreni.glm, euro.worldclim, "bio1")
[Package ENMTools version 1.1.2 Index]