
Plot point forecasts and actual values of a trained ESN model.
Source:R/methods-base.R
plot.forecast_esn.Rd
Plot point forecasts, actual and fitted values of a trained ESN model as line chart. Optionally, test data (out-of-sample) can be added to the plot.
Usage
# S3 method for class 'forecast_esn'
plot(x, test = NULL, fitted = TRUE, ...)
Examples
xdata <- as.numeric(AirPassengers)
xmodel <- train_esn(y = xdata)
xfcst <- forecast_esn(xmodel, n_ahead = 12)
plot(xfcst)