Learn R Programming

ggfortify (version 0.4.17)

ggtsdiag: Plots time-series diagnostics

Description

Plots time-series diagnostics

Usage

ggtsdiag(
  object,
  gof.lag = 10,
  conf.int = TRUE,
  conf.int.colour = "#0000FF",
  conf.int.linetype = "dashed",
  conf.int.fill = NULL,
  conf.int.alpha = 0.3,
  ad.colour = "#888888",
  ad.linetype = "dashed",
  ad.size = 0.2,
  nrow = NULL,
  ncol = 1,
  ...
)

Value

ggplot

Arguments

object

A fitted time-series model

gof.lag

The maximum number of lags for a Portmanteau goodness-of-fit test

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

ad.colour

Line colour for additional lines

ad.linetype

Line type for additional lines

ad.size

Fill colour for additional lines

nrow

Number of facet/subplot rows

ncol

Number of facet/subplot columns

...

other keywords

Examples

Run this code
if (FALSE) {
ggtsdiag(arima(AirPassengers))
}

Run the code above in your browser using DataLab