Generates simulated species data using Gaussian random fields.
Usage
simulate_species(x, n, scale)
# S3 method for Raster
simulate_species(x, n = 1, scale = 0.5)
# S3 method for SpatRaster
simulate_species(x, n = 1, scale = 0.5)
Arguments
- x
terra::rast()
object to use as a template.- n
integer
number of layers to simulate. Defaults to 1.- scale
numeric
parameter to control level of spatial auto-correlation in the simulated data. Defaults to 0.5.
Value
A terra::rast()
object with values between zero and one.
See also
Other simulations:
simulate_cost()
,
simulate_data()