plot_fc: Plotting the forecast output

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plotting the forecast output

Usage

1
plot_fc(forecast, theme = "normal")

Arguments

forecast

A forecastML 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
# Train a time series forecasting model
md <- trainML(input = AirPassengers, trend = list(linear = TRUE), seasonal = "month")
fc <- forecastML(model = md, h = 60)

# Plot the forecast model
plot_fc(fc)

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

RamiKrispin/forecastML documentation built on Nov. 15, 2019, 9:58 a.m.