Learn R Programming

deseats (version 1.1.0)

autoplot,deseats_fc-method: ggplot2 Plot Method for Class "deseats_fc"

Description

Create ggplot2 R plots for forecasting objects of class "deseats_fc".

Usage

# S4 method for deseats_fc
autoplot(object, ...)

Value

This method returns a ggplot2 plot object, i.e. an object of classes "gg" and "ggplot".

Arguments

object

an object of class "deseats_fc", for example generated by a call to predict,s_semiarma-method.

...

currently without use; implemented for compatibility.

Author

  • Dominik Schulz (Research Assistant) (Department of Economics, Paderborn University),
    Author and Package Creator

Details

This is a plot method to visualize the forecasting results for a Seasonal Semi-ARMA model. Common plot arguments can be implemented to change the appearance.

Examples

Run this code
# \donttest{
est <- s_semiarma(log(EXPENDITURES))
fc <- predict(est, n.ahead = 4)
fc_e <- expo(fc)
autoplot(fc_e)
# }

Run the code above in your browser using DataLab