NLMR (version 1.1)

nlm_edgegradient: nlm_edgegradient

Description

Simulates an edge-gradient neutral landscape model.

Usage

nlm_edgegradient(ncol, nrow, resolution = 1, direction = NA, rescale = TRUE)

Arguments

ncol

[numerical(1)] Number of columns forming the raster.

nrow

[numerical(1)] Number of rows forming the raster.

resolution

[numerical(1)] Resolution of the raster.

direction

[numerical(1)] Direction of the gradient (between 0 and 360 degrees), if unspecified the direction is randomly determined.

rescale

[logical(1)] If TRUE (default), the values are rescaled between 0-1.

Value

RasterLayer

Details

Simulates a linear gradient orientated on a specified or random direction that has a central peak running perpendicular to the gradient direction.

References

Travis, J.M.J. & Dytham, C. (2004) A method for simulating patterns of habitat availability at static and dynamic range margins. Oikos, 104, 410<U+2013>416.

See Also

nlm_distancegradient, nlm_planargradient

Examples

Run this code
# NOT RUN {
# simulate random curdling
edge_gradient <- nlm_edgegradient(ncol = 100, nrow = 100, direction = 80)

# }
# NOT RUN {
# visualize the NLM
landscapetools::show_landscape(edge_gradient)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace