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