landgen | R Documentation |
area
- prop1 x area + prop2 x area
. Patch number (n1, n2)
controls the granularity of the landscape. Note, though, that patches can
become contiguous, so there may not be n discrete patches in the output.Simulate a landscape consisting of 2 patch classes (1, 2) superimposed on
a matrix (0). The area remaining as "matrix" (class 0) will naturally be
area
- prop1 x area + prop2 x area
. Patch number (n1, n2)
controls the granularity of the landscape. Note, though, that patches can
become contiguous, so there may not be n discrete patches in the output.
landgen(area = 10000, prop1, prop2, n1, n2)
area |
the area of the simulated landscape in m2. By default, it is set to 10,000 (100 x 100) to simulate a 1 hectare landscape at a resolution of 1 x 1 m. |
prop1 |
proportion of total landscape covered by patch class 1 |
prop2 |
proportion of total landscape covered by patch class 2 |
n1 |
number of class1 patches |
n2 |
number of class2 patches |
A raster
landgen(10000, prop1 = 0.5, prop2 = 0.25, n1 = 10, n2 = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.