check.bg {ENMTools} | R 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.