initStand: Initialize the model Stand

Description Usage Arguments Details Value Examples

Description

Initialize the model Stand

Usage

1
2
initStand(npatch = 1, year = 2000, soil = c(0, -0.5, -1.5), z = 0,
  layout = "square", composition = "spatial", dist = 0.05)

Arguments

npatch

number of patches

year

the initialization year

soil

a vector or matrix of soil depths.

z

the height of each patch.

layout

patch layout ('square' or 'linear'), a two element vector with number of rows/colums. A matrix for layout (not yet ready).

composition

'spatial' or 'temporal'

dist

the fractional distance between the hexagons

Details

If soil is a matrix, the number of columns must be equal to npatch. In that way each patch can have its own soil depth. The patches represented as hexagons can either be arranged in a square or in a line. The later one for example to represent a time series (succession).

Value

a Stand-class

Examples

1
2
3
4
5
6
7
8
## Not run: 
stand <- initStand(npatch=9, z=sort(rnorm(9, sd=2)))
stand3D(stand)

stand <- initStand(npatch=9, z=sort(rnorm(9, sd=2)), layout='linear')
stand3D(stand)

## End(Not run)

DGVM3D documentation built on May 2, 2019, 3:47 p.m.