plot_pred: Plot Time Series Forecast Function

View source: R/prediction_plot.R

plot_predR Documentation

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

Author(s)

Yuming Zhang


simts documentation built on Aug. 31, 2023, 5:07 p.m.