powered by
Visualization functions for forecast package forecasting objects
plot_forecast(forecast_obj, title = NULL, Xtitle = NULL, Ytitle = NULL, color = NULL, width = 2)
A forecast object from the forecast, forecastHybrid, or bsts packages
A character, a plot title, optional
Set the X axis title, default set to NULL
Set the Y axis title, default set to NULL
A character, the plot, support both name and expression
An Integer, define the plot width, default is set to 2
# NOT RUN { data(USgas) library(forecast) fit <- ets(USgas) fc<- forecast(fit, h = 60) plot_forecast(fc) # }
Run the code above in your browser using DataLab