Description Usage Arguments Details Value See Also Examples
View source: R/nlm_distancegradient.R
Simulates a distance-gradient neutral landscape model.
1 | nlm_distancegradient(ncol, nrow, resolution = 1, origin, rescale = TRUE)
|
ncol |
[ |
nrow |
[ |
resolution |
[ |
origin |
[ |
rescale |
[ |
The function takes the number of columns and rows as input and creates a
RasterLayer
with the same extent. Origin
is a numeric vector of
xmin, xmax, ymin, ymax for a rectangle inside the raster from which the
distance is measured.
RasterLayer
nlm_edgegradient
,
nlm_planargradient
1 2 3 4 5 6 7 8 | # simulate a distance gradient
distance_gradient <- nlm_distancegradient(ncol = 100, nrow = 100,
origin = c(20, 30, 10, 15))
## Not run:
# visualize the NLM
landscapetools::show_landscape(distance_gradient)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.