powered by
Simulates a neutral landscape of the same extent and resolution as the input raster, with the same distribution of values.
mod_random_clust_sim(x, p)
A SpatRaster object with boundary elements.
A SpatRaster object.
The proportion of cells to be marked in percolated raster. Higher values of p produce larger clusters.
Amy Luo
Saura, S. & Martínez-Millán, J. (2000) Landscape patterns simulation with a modified random clusters method. Landscape Ecology, 15, 661 – 678.
data(grassland) grassland <- terra::rast(grassland_matrix, crs = grassland_crs) terra::ext(grassland) <- grassland_ext simulation <- mod_random_clust_sim(grassland, p = 0.6) terra::plot(simulation)
Run the code above in your browser using DataLab