Learn R Programming

BoundaryStats (version 2.3.0)

random_raster_sim: Stochastic neutral landscape model

Description

Simulates a spatially stochastic neutral landscape of the same extent and resolution as the input raster, with the same distribution of values.

Usage

random_raster_sim(x)

Value

A SpatRaster object with boundary elements.

Arguments

x

A SpatRaster object.

Author

Amy Luo

References

James, P. M. A., Fleming, R.A., & Fortin, M.-J. (2010) Identifying significant scale-specific spatial boundaries using wavelets and null models: Spruce budworm defoliation in Ontario, Canada as a case study. Landscape Ecology, 6, 873-887.

Examples

Run this code
data(grassland)
grassland <- terra::rast(grassland_matrix, crs = grassland_crs)
terra::ext(grassland) <- grassland_ext

simulation <- random_raster_sim(grassland)
terra::plot(simulation)

Run the code above in your browser using DataLab