DirPlot: Visualization of the Directional Forecasts and the Original...

Description Usage Arguments

Description

This function plots the original time series, and draws dots that represent the directional forecasts. The color and shape of the dots represent direction up or direction down, and the size of the dots represents whether or not the directional forecast is correct.

Usage

1
2
DirPlot(forecasts, original, size.range, title,
        legend.position="bottom")

Arguments

forecasts

an object of class "Maeforecast". Can be returned by functions maeforecast and Bagging.

original

a numeric vector or a ts or zoo object that contains the original time series of the dependent variable. Note that this should not be the log-differenced series used in making the forecasts.

size.range

a numeric vector of length 2 that contains desirable sizes for the incorrect and then the correct directional forecast dots. Note that the order matters here.

title

the title of the plot, which can be omitted.

legend.position

the position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector)


google-trends-v1/gtm documentation built on June 5, 2019, 5:13 p.m.