Produces a plot of the phenology model evaluations.
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"))an output of the phen_model or phen_model_forecast functions
an output of the phen_model_gen2 or phen_model_forecast functions
binwidth of the density estimator
logical. Set to TRUE if you are plotting a multi-year forecast (i.e. if obj and obj_gen2 are outputs of phen_model_forecast)
an output from the assign_observed_data function
the y-axis label
the x-axis label
a vector of strings representing the names of the life-cycle stages
A ggplot object.
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.
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.