nlm_distancegradient.RdSimulates a distance-gradient neutral landscape model.
nlm_distancegradient(ncol, nrow, resolution = 1, origin, rescale = TRUE)
| ncol | [ |
|---|---|
| nrow | [ |
| resolution | [ |
| origin | [ |
| rescale | [ |
RasterLayer
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.
# 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) # }