visualize.enm: visualize.enm, Makes a heatmap of suitability of habitat in...

View source: R/visualize.enm.R

visualize.enmR Documentation

visualize.enm, Makes a heatmap of suitability of habitat in environment space according to a given model

Description

visualize.enm, Makes a heatmap of suitability of habitat in environment space according to a given model

Usage

visualize.enm(
  model,
  env,
  nbins = 100,
  layers = names(env)[1:2],
  plot.test.data = FALSE,
  plot.points = TRUE,
  minmax = NA
)

Arguments

model

An enmtools.model object

env

A set of environmental layers

nbins

The number of bins per layer to use for drawing environment space

layers

A vector of layer names to use for drawing environment space

plot.test.data

Logical determining whether test data should be plotted, if present. If test data is plotted, it will appear as translucent green triangles.

plot.points

Logical determining whether presence points should be plotted on suitability plot

minmax

A named list of minima and maxima for each axis, in case the user wants to constrain or expand the space over which models are plotted.

Value

suit.plot A list containing two dimensional plot of an ENM in environment space and a plot of the available environments.

Examples

aurelioi.glm <- enmtools.glm(iberolacerta.clade$species$aurelioi, euro.worldclim,
f = pres ~ poly(bio1, 4) + poly(bio12, 4))
visualize.enm(aurelioi.glm, euro.worldclim, layers = c("bio1", "bio12"))

danlwarren/ENMTools documentation built on Feb. 2, 2024, 1:05 p.m.