Learn R Programming

ENMTools (version 1.1.2)

hypervolume.overlap: Takes an emtools.species object and environmental layers, and constructs a hypervolume using the R package hypervolume

Description

Takes an emtools.species object and environmental layers, and constructs a hypervolume using the R package hypervolume

Usage

hypervolume.overlap(
  species.1,
  species.2,
  env = NA,
  reduction.factor = 0.1,
  ...
)

Value

A list containing a set of hypervolume objects and the overlap that was measured between them.

Arguments

species.1

An enmtools.species or enmtools.hypervolume object

species.2

An enmtools.species or enmtools.hypervolume object

env

A stack of environmental rasters, required when enmtools.species objects are passed

reduction.factor

Passed to hypervolume functions

...

Extra parameters to be passed to enmtools.hypervolume

Examples

Run this code
# \donttest{
#install.extras(repos='http://cran.us.r-project.org')
mont <- iberolacerta.clade$species$monticola
cyr <- iberolacerta.clade$species$cyreni
env <- euro.worldclim[[c(1,8,12,17)]]
if(requireNamespace("hypervolume", quietly = TRUE)) {
    hypervolume.overlap(mont, cyr, env = env)
}
# }

Run the code above in your browser using DataLab