nlm_planargradient: nlm_planargradient

Description Usage Arguments Details Value References See Also Examples

View source: R/nlm_planargradient.R

Description

Simulates a planar gradient neutral landscape model.

Usage

1
nlm_planargradient(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 in degrees, if unspecified the direction is randomly determined.

rescale

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

Details

Simulates a linear gradient sloping in a specified or random direction.

Value

RasterLayer

References

Palmer, M.W. (1992) The coexistence of species in fractal landscapes. The American Naturalist, 139, 375 - 397.

See Also

nlm_distancegradient, nlm_edgegradient

Examples

1
2
3
4
5
6
7
8
# simulate planar gradient
planar_gradient <- nlm_planargradient(ncol = 200, nrow = 200)

## Not run: 
# visualize the NLM
landscapetools::show_landscape(planar_gradient)

## End(Not run)

NLMR documentation built on Sept. 20, 2021, 9:07 a.m.