plot.Maeforecast: Plot Results from Maeforecast Functions

Description Usage Arguments Examples

Description

This function plots the point forecasts along side the realized values using ggplot.

Usage

1
2
3
4
## S3 method for class 'Maeforecast'
plot(forecasts, start=NULL, frequency='month',
    forecast.lab="Forecasts", true.lab="Realized",
    x.lab="Time", y.lab="Value", title=NULL)

Arguments

forecasts

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

start

the starting time of the forecasts. Should have the format "%Y-%m-%d". If omitted, time will be shown as integers starting from 1.

frequency

if start is not omitted, frequency is used to contruct the time sequence, which indicates the frequency of the time series. Options include "year", "month", "week", and "day".

forecast.lab

character, label of the forecasts. Default is "Forecasts".

true.lab

character, label of the realized values. Default is "Realized".

x.lab

character, label of the x-axis. Default is "Time".

y.labe

character, label of the y-axis. Default is "Value".

title

character, title of the plot.

Examples

1
2
3
AR.For<-maeforecast(mydata, w_size=72, window="recursive",
        model="ar")
plot(AR.For, start="2010-02-01", frequency="month")

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