Learn R Programming

ENMTools (version 1.0.5)

raster.breadth: raster.breadth, applies measures of niche breadth to an ENM

Description

This function measures the spatial heterogeneity of the distribution of suitability scores from an ENM. It returns Levins' two metrics of niche breadth.

Usage

raster.breadth(x, verbose = FALSE)

Arguments

x

An object of class raster or RasterLayer, or an ENMTools model object containing a suitability raster.

verbose

Controls printing of diagnostic messages

Value

results A vector containing the two metrics B1 and B2 for niche breadth.

Examples

Run this code
# NOT RUN {
data(iberolacerta)
data(euro.worldclim)
aurelioi.glm <- enmtools.glm(iberolacerta.clade$species$aurelioi, euro.worldclim,
f = pres ~ bio1 + bio12)
raster.breadth(aurelioi.glm)
# }

Run the code above in your browser using DataLab