Description Usage Arguments Details Value
cellular automata-like function to "grow" habitat patches
1 |
x |
A matrix whose cell values all = 1 |
n.size |
A number representing the target size for each cluster |
start |
A number between 1 and the number of cells in matrx x indicating the algorithm starting position. |
Function to expand a patch randomly within indicator array x (wherein 1=unoccupied) by n.size cells, beginning at index start. Algorithm based on and modified from: https://gis.stackexchange.com/questions/60562/creating-randomly-shaped-clumps-of- cells-in-a-raster-from-seeds-of-1-cell-pixel
A a grid of generated numbers of approximately n.size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.