Description Usage Arguments Details Value Examples
Simulates a spatially random neutral landscape model with values drawn a uniform distribution.
1 | nlm_random(ncol, nrow, resolution = 1, rescale = TRUE)
|
ncol |
[ |
nrow |
[ |
resolution |
[ |
rescale |
[ |
The function takes the number of columns and rows as input and creates a
RasterLayer with the same extent. Each raster cell is randomly assigned a
value between 0 and 1 drawn from an uniform distribution (runif(1,0,1)
).
RasterLayer
1 2 3 4 5 6 7 8 | # simulate spatially random model
random <- nlm_random(ncol = 200, nrow = 100)
## Not run:
# visualize the NLM
landscapetools::show_landscape(random)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.