Description Usage Arguments Value Examples
View source: R/plots_functions.R
Plotting the forecast output
1 | plot_fc(forecast, theme = "normal")
|
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" |
A plotly object
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.