plot_phen_model: Plot Phenology Model Evaluations

Description Usage Arguments Details Value Author(s) References See Also

View source: R/plot_phen_model.R

Description

Produces a plot of the phenology model evaluations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 phen_model or phen_model_forecast functions

obj_gen2

an output of the phen_model_gen2 or phen_model_forecast functions

binwidth

binwidth of the density estimator

forecast

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)

observed_data

an output from the assign_observed_data function

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


phenModel documentation built on Aug. 2, 2019, 5:05 p.m.