project_bias {sampbias} | R Documentation |
Projecting Bias Effects in Space
Description
Uses the the estimated bias weights from a sampbias
object to project
the bias through space, using the same raster as used for the distance
calculation.#'
Usage
project_bias(x, factors = NULL)
Arguments
x |
an object of the class |
factors |
a character vector indicating which biasing factors to project |
Value
A raster stack, with the same length as the number of biasing factors
used in calculate_bias
. The names indicate the factors
included for each layer.
See Also
calculate_bias
, summary.sampbias
Examples
#simulate data
occ <- data.frame(species = rep(sample(x = LETTERS, size = 5), times = 10),
decimalLongitude = runif(n = 50, min = 12, max = 20),
decimalLatitude = runif(n = 50, min = -4, max = 4))
out <- calculate_bias(x = occ, terrestrial = TRUE)
proj <- project_bias(out)
[Package sampbias version 2.0.0 Index]