Plotting method for class hdmod
# S3 method for hdmod
plot(x, col.point = "blue", highlight = "red", standd = TRUE,
cex=1, corD=FALSE, ask=TRUE, ...)
A H-D model model fitted by fithd.
The color used for data points
The color used to higlight classes with mean sighnificantly different from zero
Plot residuals against diameter standardized using the plot-specific mean and diameter (standd=TRUE)
or against raw diameter (standd=FALSE)
See par
should predictions of random effects be plotted on mean diameter of the plot.
ask before new plot.
Other arguments, currently ignored.
Lauri Mehtatalo <lauri.mehtatalo@uef.fi>
The function makes residual plots on a fitted H-D model, which can be used to explore whether the fixed part
satisfactorily models the shape of H-D models.
The residuals are plotted on diameters standardized at plot level (dsd) or on raw diameters (d) according to argument standd.
Here \(dsd=(d-D)/SDD\), where \(d\) is tree diameter, \(D\) and \(SDD\) are the mean and standard deviation
of diameters on the plot in question. Using plot-specific standardized diameter ensures that e.g.,
the medium-sized trees of the plot are always in the middle of the plot, which provides
a better graph to explore the fit at the plot level in a dataset where the diameter range varies between plots.
The function plots model residuals on the required type of diameter and adds a whiskers plot
using mywhiskers with argument se=TRUE.
data(spati)
model<-fithd(spati$d,spati$h,spati$plot)
plot(model)
Run the code above in your browser using DataLab