nlm_percolation: nlm_percolation

Description Usage Arguments Details Value References Examples

View source: R/nlm_percolation.R

Description

Generates a random percolation neutral landscape model.

Usage

1
nlm_percolation(ncol, nrow, resolution = 1, prob = 0.5)

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.

prob

[numerical(1)]
Probability value for setting a cell to 1.

Details

The simulation of a random percolation map is accomplished in two steps:

Value

RasterLayer

References

1. Gardner RH, O'Neill R V, Turner MG, Dale VH. 1989. Quantifying scale-dependent effects of animal movement with simple percolation models. Landscape Ecology 3:217 - 227.

2. Gustafson, E.J. & Parker, G.R. (1992) Relationships between landcover proportion and indices of landscape spatial pattern. Landscape Ecology , 7, 101 - 110.

Examples

1
2
3
4
5
6
7
# simulate percolation model
percolation <- nlm_percolation(ncol = 100, nrow = 100, prob = 0.5)
## Not run: 
# visualize the NLM
landscapetools::show_landscape(percolation)

## End(Not run)

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