check.bg: Takes an emtools.species object and adds background points if...

View source: R/check.bg.R

check.bgR Documentation

Takes an emtools.species object and adds background points if they're missing. Looks for range raster first, then goes for environmental layers.

Description

Takes an emtools.species object and adds background points if they're missing. Looks for range raster first, then goes for environmental layers.

Usage

check.bg(
  species,
  env = NA,
  nback = 1000,
  bg.source = "default",
  verbose = FALSE,
  bias = NA
)

Arguments

species

An enmtools.species object

env

A SpatRaster containing environmental data.

nback

Number of background points to generate, if any

bg.source

Source for drawing background points. If "points", it just uses the background points that are already in the species object. If "range", it uses the range raster. If "env", it draws points at randome from the entire study area outlined by the first environmental layer.

verbose

Controls printing of various messages progress reports. Defaults to FALSE.

bias

A SpatRaster representing estimated relative sampling bias. Used when bg.source is either "range" or "env".

Value

An enmtools.species object with background points.


ENMTools documentation built on April 11, 2023, 6:09 p.m.

Related to check.bg in ENMTools...