Autoplot changepoint::cpt
# S3 method for class 'cpt'
autoplot(
object,
is.date = NULL,
cpt.colour = "#FF0000",
cpt.linetype = "dashed",
...
)
changepoint::cpt
instance
Logical frag indicates whether the stats::ts
is date or not.
If not provided, regard the input as date when the frequency is 4 or 12.
Line colour for changepoints
Line type for changepoints
other arguments passed autoplot.ts
ggplot
if (FALSE) { # \dontrun{
library(changepoint)
autoplot(cpt.mean(AirPassengers))
autoplot(cpt.meanvar(AirPassengers))
} # }