View source: R/fortify_changepoint.R
autoplot.breakpoints | R Documentation |
strucchange::breakpoints
Autoplot strucchange::breakpoints
## S3 method for class 'breakpoints'
autoplot(
object,
data = NULL,
cpt.colour = "#FF0000",
cpt.linetype = "dashed",
...
)
object |
|
data |
Original time series. Mandatory for plotting |
cpt.colour |
Line colour for changepoints |
cpt.linetype |
Line type for changepoints |
... |
other arguments passed to |
ggplot
## Not run:
library(strucchange)
bp.nile <- breakpoints(Nile ~ 1)
autoplot(bp.nile)
autoplot(bp.nile, is.date = TRUE)
autoplot(breakpoints(bp.nile, breaks = 2), data = Nile)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.