Learn R Programming

esemifar (version 2.0.1)

plot.esemifar_fc: Plot Method for Class "esemifar_fc"

Description

Create basic R plots for forecasting objects of class "esemifar_fc".

Usage

# S3 method for esemifar_fc
plot(x, y = NULL, t = NULL, ...)

Value

This method returns NULL.

Arguments

x

an object of class "esemifar_fc", for example generated by a call to predict.esemifar.

y

currently without use; for compatibility only.

t

a numeric vector with series of time points for observations and forecasts.

...

further arguments of plot.ts to adjust for example the axis limits via xlim and ylim.

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 an ESEMIFAR model. Common plot arguments can be implemented to change the appearance.

Examples

Run this code
lgdp <- log(esemifar::gdpG7$gdp)
est <- tsmoothlm(lgdp, pmax = 1, qmax = 1)
# Under normality
fc <- predict(est, n.ahead = 10, method = "norm", expo = TRUE)
plot(fc)

Run the code above in your browser using DataLab