createLandscape: Landscape function

Description Usage Arguments Value Author(s) Examples

View source: R/createLandscape.R

Description

Landscape function

Usage

1
createLandscape(r, size_pp, n_nf, size_nf)

Arguments

r

A raster object

size_pp

The size of pine plantations expressed as number of pixels (integer)

n_nf

Number of patchs of Natural forests (integer between 1 and 5)

size_nf

The size of natural forest patchs (numeric value between 10 and 500)

Value

A raster object with the landscape confifured

Author(s)

Antonio J Perez-Luque

Examples

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)

ajpelu/respine documentation built on May 14, 2019, 8:19 a.m.