plot.cplm: Plot Change Point Linear Model

View source: R/cplm.R

plot.cplmR Documentation

Plot Change Point Linear Model

Description

Plot Change Point Linear Model

Usage

## S3 method for class 'cplm'
plot(x, fit = NULL)

Arguments

x

a 'cplm' object

fit

an optional specification of coefficient type "LS" or "L1". If not specified returns the best-guess as to which is more appropriate. (The presence of outlying bills trips the standard output to the penalized "L1" fit.) Additionally specifying "both" here will overlay both fits.

Value

A ggplot object

See Also

residsPlot to plot residuals (this is the fun part anyway - looking at trends net of weather)

Examples

data(rfm)
mod <- cplm(eui ~ oat, data = rfm)
plot(mod)
plot(mod, "both")

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