spmRandom: Generate a neutral random pattern

Description Usage Arguments Details References Examples

View source: R/generate.operators.R

Description

This is largely still work in progress.

Usage

1
spmRandom(mat, pattern = "cell", seed = NULL)

Arguments

mat

[matrix]
object to which the spatial pattern is added.

pattern

the pattern to which random values are assigned, either "cell", "rectangle", "circle", "voronoi" or "cluster"; see Details.

seed

specify a seed for the random creation of numbers.

Details

Random values can be applied to different patterns within the landscape model.

References

Gaucherel, C. (2008) Neutral models for polygonal landscapes with linear networks. Ecological Modelling, 219, 39 - 48. Saura, S., Martínez-Millán, J. (2000) Landscape patterns simulation with a modified random clusters method. Landscape Ecology 15, 661–678.

Examples

1
2
3
mat <- matrix(nrow = 100, ncol = 100, data = 0)
myRandomPattern <- spmRandom(mat = mat)
visualise(raster = myRandomPattern)

EhrmannS/rasterTools documentation built on Feb. 4, 2019, 11:22 a.m.