View source: R/base_fortify_ts.R
fortify.tsmodel | R Documentation |
data.frame
Convert time series models (like AR, ARIMA) to data.frame
## S3 method for class 'tsmodel'
fortify(
model,
data = NULL,
predict = NULL,
is.date = NULL,
ts.connect = TRUE,
...
)
model |
Time series model instance |
data |
original dataset, needed for |
predict |
Predicted |
is.date |
Logical frag indicates whether the |
ts.connect |
Logical frag indicates whether connects original time-series and predicted values |
... |
other arguments passed to methods |
data.frame
## Not run:
fortify(stats::ar(AirPassengers))
fortify(stats::arima(UKgas))
fortify(stats::arima(UKgas), data = UKgas, is.date = TRUE)
fortify(forecast::auto.arima(austres))
fortify(forecast::arfima(AirPassengers))
fortify(forecast::nnetar(UKgas))
fortify(stats::HoltWinters(USAccDeaths))
data(LPP2005REC, package = 'timeSeries')
x = timeSeries::as.timeSeries(LPP2005REC)
d.Garch = fGarch::garchFit(LPP40 ~ garch(1, 1), data = 100 * x, trace = FALSE)
fortify(d.Garch)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.