marginal.plots: marginal.plots Plots the marginal response of a model to an...

Description Usage Arguments Value Examples

View source: R/marginal.plots.R

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

1
marginal.plots(model, env, layer, standardize = TRUE)

Arguments

model

An enmtools model object

env

A RasterLayer or RasterStack 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.

Value

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

Examples

1
2
3
4
5
data(iberolacerta.clade)
data(euro.worldclim)
cyreni.glm <- enmtools.glm(iberolacerta.clade$species$cyreni,
f = pres ~ bio1 + bio12, euro.worldclim)
marginal.plots(cyreni.glm, euro.worldclim, "bio1")

danlwarren/ENMTools documentation built on Sept. 9, 2018, 4:23 p.m.