plot_phen_model {phenModel} | R Documentation |
Plot Phenology Model Evaluations
Description
Produces a plot of the phenology model evaluations.
Usage
plot_phen_model(obj, obj_gen2, binwidth = 8, forecast = FALSE,
observed_data = NULL, ylab = "Days from 1st November",
xlab = "Modelled Life-Cycle Stages",
labels = c("Budburst",
"Post-Diapause",
"Ovipositing Period (Eggs)",
"Larvae Emergence",
"Pupae Emergence",
"Adult Emergence",
"Sexual Maturation"))
Arguments
obj |
an output of the |
obj_gen2 |
an output of the |
binwidth |
binwidth of the density estimator |
forecast |
logical. Set to |
observed_data |
an output from the |
ylab |
the y-axis label |
xlab |
the x-axis label |
labels |
a vector of strings representing the names of the life-cycle stages |
Details
Visualisation of days until stage completion for different life cycle stages and generations. Plot can incorporate observed data, where available. All dates are counted from the 1st of November of the previous year. The estimated density is based on a Gaussian kernel whose binwidth can be easily modified using argument binwidth
. To add observed data points, see assign_observed_data
.
Since this is a ggplot
object, layers can be easily added by using standard ggplot
functions.
Value
A ggplot
object.
Author(s)
Rafael de Andrade Moral (rafael.deandrademoral@mu.ie) and Rowan Fealy
References
Pollard C.P., Griffin C.T., Moral R.A., Duffy C., Chuche J., Gaffney M.T., Fealy R. (submitted) phenModel: a temperature-dependent phenology model for the blue willow beetle, Phratora vulgatissima.
See Also
phen_model
, phen_model_gen2
, phen_model_forecast