residsPlot: Plot Residuals from a Change Point Linear Model

View source: R/models.R View source: R/cplm.R

residsPlotR Documentation

Plot Residuals from a Change Point Linear Model

Description

Note that this is a generic, currently with a method for S3 class 'cplm'. The vision is that once variable base degree day & Bayesian methodologies are developed there will also be methods to plot the residuals from those models.

Usage

residsPlot(x)

Arguments

x

a 'cplm' object

var

variable name to plot against in the dataset used to fit the model.

Value

A ggplot object

See Also

plot.cplm

Examples

data(ecotope)
mod <- cplm(kwhd ~ oat, data = ecotope)
residsPlot(mod, "dateEnd")

EcotopeResearch/rterm documentation built on Oct. 17, 2022, 4:02 p.m.