plot.bigtime.recursiveforecast {bigtime}R Documentation

Plots Recursive Forecasts

Description

Plots the recursive forecast obtained using recursiveforecast When forecasts were made for multiple lambdas and lmbda is not a single number, then a ribbon will be plotted that reaches from the minimum estimate of all lambdas to the maximum.

Usage

## S3 method for class 'bigtime.recursiveforecast'
plot(x, series = NULL, lmbda = NULL, last_n = floor(nrow(fcst$Y) * 0.1), ...)

Arguments

x

Recursive Forecast obtained using recursiveforecast

series

Series name. If original data has no names, then use Y1 for the first series, Y2 for the second, and so on.

lmbda

Lambdas to be used for plotting. If forecast was done using only one lambda, then this will be ignored.

last_n

Last n observations of the original data to include in the plot

...

Not currently used

Details

If lmbda is of length one or forecasts were made using only one lambda, then only a line will be plotted.

Default names for series are Y1, Y2, ... if the original data does not have any column names.

Value

Returns a ggplot


[Package bigtime version 0.2.3 Index]