Learn R Programming

simts (version 0.1.1)

plot_pred: Plot Time Series Forecast Function

Description

This function plots the time series output from a forecast method with approximate 68

Usage

plot_pred(x, model, n.ahead, level = NULL, xlab = NULL, ylab = NULL,
  main = NULL, ...)

Arguments

x

A gts object

model

A ts model

n.ahead

An integer indicating number of units of time ahead for which to make forecasts

level

A double or vector indicating confidence level of prediction interval. By default, it uses the levels of 0.50 and 0.95.

xlab

A string for the title of x axis

ylab

A string for the title of y axis

main

A string for the over all title of the plot

...

Additional parameters