powered by
strucchange::breakpoints
Autoplot strucchange::breakpoints
# S3 method for breakpoints autoplot( object, data = NULL, cpt.colour = "#FF0000", cpt.linetype = "dashed", ... )
ggplot
strucchange::breakpoints or strucchange::breakpointsfull instance.
strucchange::breakpointsfull
Original time series. Mandatory for plotting strucchange::breakpoints instance.
Line colour for changepoints
Line type for changepoints
other arguments passed to autoplot.ts
autoplot.ts
if (FALSE) { library(strucchange) bp.nile <- breakpoints(Nile ~ 1) autoplot(bp.nile) autoplot(bp.nile, is.date = TRUE) autoplot(breakpoints(bp.nile, breaks = 2), data = Nile) }
Run the code above in your browser using DataLab