View source: R/fortify_forecast.R
fortify.forecast | R Documentation |
forecast::forecast
to data.frame
Convert forecast::forecast
to data.frame
## S3 method for class 'forecast'
fortify(model, data = NULL, is.date = NULL, ts.connect = FALSE, ...)
model |
|
data |
original dataset, if needed |
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:
d.arima <- forecast::auto.arima(AirPassengers)
d.forecast <- forecast::forecast(d.arima, level = c(95), h = 50)
fortify(d.forecast)
fortify(d.forecast, ts.connect = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.