plot_fc: Plotting the forecast output

Description Usage Arguments Value Examples

View source: R/plots_functions.R

Description

Plotting the forecast output

Usage

1
plot_fc(forecast, theme = "normal")

Arguments

forecast

A forecastLM object

theme

A character, defines the color theme to be used in the plot output. Available themes - "normal" (default), "darkBlue", "darkPink", "darkGreen", "classic", "lightBeige"

Value

A plotly object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Load the data
data(ny_gas)

head(ny_gas)

# Train a time series forecasting model
md <- trainLM(input = ny_gas,
              y = "y",
              trend = list(linear = TRUE),
              seasonal = "month",
              lags = c(1, 12))

fc <- forecastLM(model = md, h = 60)

# Plot the forecast model
plot_fc(fc)

# Use different plot theme
plot_fc(fc, theme = "darkPink")

RamiKrispin/forecastLM documentation built on April 4, 2020, 1:48 a.m.