fortify.cpt {ggfortify} | R Documentation |
changepoint::cpt
and strucchange::breakpoints
to data.frame
Convert changepoint::cpt
and strucchange::breakpoints
to data.frame
## S3 method for class 'cpt' fortify(model, data = NULL, is.date = NULL, ...)
model |
|
data |
original dataset, if needed |
is.date |
Logical frag indicates whether the |
... |
other arguments passed to methods |
data.frame
## Not run: library(changepoint) fortify(cpt.mean(AirPassengers)) fortify(cpt.var(AirPassengers)) fortify(cpt.meanvar(AirPassengers)) library(strucchange) bp.nile <- breakpoints(Nile ~ 1) fortify(bp.nile) fortify(breakpoints(bp.nile, breaks = 2)) fortify(breakpoints(bp.nile, breaks = 2), data = Nile) ## End(Not run)