Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/plotarimapred.R
The function plots ARIMA predictions against its actual values with prediction intervals.
1 2 3 4 5 6 7 8 9 10 |
ts.cont |
A vector or univariate time series containing actual values
for a time series that are to be plotted against its respective predictions.
The number of consecutive values to be predicted is assumed to be equal to
the number of rows in |
fit.arima |
A fitted ARIMA model for the time series that is to be
predicted. An object of class " |
xlim |
Numeric vector containing the initial and final limits of the x-axis to be plotted, respectively. |
range.percent |
A percentage which defines how much the range of the graphic's y-axis will be increased from the minimum limits imposed by data. |
xreg |
A vector, matrix, data frame or times series with new values of
external regressors to be used for prediction (for class Arima objects
only). See the |
ylab |
A title for the graphic's y-axis. Ignored if |
xlab |
A title for the graphic's x-axis. Ignored if |
main |
An overall title for the graphic. Ignored if |
The model in fit.arima
is used for prediction by the
forecast.Arima
function in the forecast
package. The
resulting forecast
object is then used for plotting the predictions
and their intervals by the plot.forecast
function also in the
forecast
package. For more details, see the
forecast.Arima
and the plot.forecast
functions
in the forecast
package.
None.
Rebecca Pontes Salles
See the forecast.Arima
and the
plot.forecast
functions in the forecast package.
references to the literature/web site here ~
forecast.Arima
, plot.forecast
,
arimapred
~
1 2 3 4 | data(SantaFe.A,SantaFe.A.cont)
fit <- forecast::auto.arima(SantaFe.A)
ts.cont <- ts(SantaFe.A.cont,start=1001)
plotarimapred(ts.cont, fit, xlim=c(1001,1100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.