makeStand: Make a stand of virtual plants

Description Usage Arguments Details Value Author(s) Examples

Description

Make a stand of plants, for use in runYplant, and for visualization. See the example below to get started. Support for runYplant is somewhat experimental, and YplantDay is not supported yet. Proceed at your own risk.

Usage

1
makeStand(plants = list(), xyz = data.frame(x = 0, y = 0, z = 0), plotbox = NULL)

Arguments

plants

List of plants to be placed in the stand.

xyz

Data frame (or matrix) with x,y,z locations of the stem positions of the plants.

plotbox

Optional. Plot boundary, used for scaling-up purposes.

Details

The xyz argument must be a dataframe or matrix with three columns, and it is assumed to be in the order X,Y,Z.

The plotbox argument is optional, if it is not provided the plot boundary will be as a rectangle that just fits around the projected crown area. In some cases, the base of the stem can thus fall outside the plot boundary. For now, the plot boundary is only used to calculate the leaf area index, which has no bearing on any simulation results.

Value

An object of class stand3d, methods exist for print, plot, runYplant. And soon, YplantDay.

Author(s)

Remko Duursma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

# Make a stand consisting of three 'toona' plants.
toonastand <- makeStand(list(toona,toona,toona),
                        xyz=data.frame(x=c(0,200,100),
                                       y=c(50,50,300),
                                       z=c(0,0,0)))

# The print method shows a very short summary:
toonastand

# Plot the stand
plot(toonastand)


## End(Not run)

YplantQMC documentation built on May 2, 2019, 5:50 p.m.