autoplot.varprd {ggfortify} | R Documentation |
Autoplot vars::varprd
Description
Autoplot vars::varprd
Usage
## S3 method for class 'varprd'
autoplot(
object,
is.date = NULL,
ts.connect = TRUE,
scales = "free_y",
predict.geom = "line",
predict.colour = "#0000FF",
predict.size = NULL,
predict.linetype = NULL,
predict.alpha = NULL,
predict.fill = NULL,
predict.shape = NULL,
conf.int = TRUE,
conf.int.colour = "#0000FF",
conf.int.linetype = "none",
conf.int.fill = "#000000",
conf.int.alpha = 0.3,
...
)
Arguments
object |
|
is.date |
Logical frag indicates whether the |
ts.connect |
Logical frag indicates whether connects original time-series and predicted values |
scales |
Scale value passed to |
predict.geom |
geometric string for predicted time-series |
predict.colour |
line colour for predicted time-series |
predict.size |
point size for predicted time-series |
predict.linetype |
line type for predicted time-series |
predict.alpha |
alpha for predicted time-series |
predict.fill |
fill colour for predicted time-series |
predict.shape |
point shape for predicted time-series |
conf.int |
Logical flag indicating whether to plot confidence intervals |
conf.int.colour |
line colour for confidence intervals |
conf.int.linetype |
line type for confidence intervals |
conf.int.fill |
fill colour for confidence intervals |
conf.int.alpha |
alpha for confidence intervals |
... |
other arguments passed to |
Value
ggplot
Examples
## Not run:
data(Canada, package = 'vars')
d.var <- vars::VAR(Canada, p = 3, type = 'const')
autoplot(stats::predict(d.var, n.ahead = 50), is.date = TRUE)
autoplot(stats::predict(d.var, n.ahead = 50), conf.int = FALSE)
## End(Not run)