Learn R Programming

ENMTools (version 1.1.2)

marginal.plots: 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)

Value

results A plot of the marginal response of the model to the environmental variable.

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

Examples

Run this code
cyreni.glm <- enmtools.glm(iberolacerta.clade$species$cyreni,
f = pres ~ bio1 + bio12, euro.worldclim)
marginal.plots(cyreni.glm, euro.worldclim, "bio1")

Run the code above in your browser using DataLab