plot.forestData {forestat} | R Documentation |
ForestData Plot
Description
Plot graphs about the forestData.
Usage
## S3 method for class 'forestData'
plot(
x,
model.type = "H",
plot.type = "Curve",
xlab = NA,
ylab = NA,
legend.lab = "Site class",
title = "Mixed birch-broadleaf forest",
...
)
Arguments
x |
A data of forestData class. |
model.type |
Type of model used for fitting, options are 'H' (stand height growth model), 'BA' (stand basal area model), or 'Bio' (stand biomass model). |
plot.type |
Type of plot, options are 'Curve' (curve plot), 'Scatter_Curve' (scatter plot with curve), 'Residual' (residual plot), or 'Scatter' (scatter plot). |
xlab |
The title for the x axis. |
ylab |
The title for the y axis. |
legend.lab |
The title for the legends. |
title |
The text for the Plot title. |
... |
Additional arguments affecting the figure plotted. |
Value
A trellis plot object
Examples
# Load sample data
data("forestData")
# Build a model based on the forestData and return a forestData class object
forestData <- class.plot(forestData,model="Richards",
interval=5,number=5,maxiter=1000,
H_start=c(a=20,b=0.05,c=1.0))
# Plot the curve of the height classes
plot(forestData, model.type="H",
plot.type="Curve",
xlab="Stand age (year)",ylab="Height (m)",legend.lab="Site class",
title="The H-model curve of the mixed birch-broadleaf forest")
[Package forestat version 1.1.0 Index]