env.breadth {ENMTools}R Documentation

Calculates breadth of a model in environment space using latin hypercube sampling

Description

Calculates breadth of a model in environment space using latin hypercube sampling

Usage

env.breadth(model, env, tolerance = 1e-04, max.reps = 10, chunk.size = 1e+05)

Arguments

model

An enmtools.model object or a model object that can be projected using the predict() function

env

A raster, raster stack of environmental data, or a list of minima and maxima for the environmental space to evaluate models over.

tolerance

How close do successive overlap metrics have to be before we decide we're close enough to the final answer

max.reps

Maximum number of attempts that will be made to find suitable starting conditions

chunk.size

How many combinations of environmental variables to try at a time. If your niche breadth in environment space is small, increasing this value may help you get a result.

Value

A list containing the environmental space version of the B2 metric and a plot of B2 estimates as a function of sample size, used as a convergence diagnostic.

Examples


cyreni <- iberolacerta.clade$species$cyreni
cyreni.glm <- enmtools.glm(cyreni, euro.worldclim, test.prop = 0.2,
f = pres ~ bio1 + bio12, nback = 500)
env.breadth(cyreni.glm,  euro.worldclim)


[Package ENMTools version 1.1.2 Index]