Description Usage Arguments Value Author(s) Examples
View source: R/createLandscape.R
Landscape function
1 | createLandscape(r, size_pp, n_nf, size_nf)
|
r |
A |
size_pp |
The size of pine plantations expressed as number of pixels ( |
n_nf |
Number of patchs of Natural forests ( |
size_nf |
The size of natural forest patchs ( |
A raster
object with the landscape confifured
Antonio J Perez-Luque
1 2 3 4 5 | # m <- matrix(nrow=100, ncol=200, byrow = TRUE)
# r <- raster(m)
# extent(r) <- matrix(c(0, 0, 200, 100), nrow=2)
# r[] <- 0
# myl <- createLandscape(r, size_pp = 1000, size_nf = 500, n_nf = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.