Learn R Programming

feasts (version 0.4.2)

gg_arma: Plot characteristic ARMA roots

Description

[Deprecated]

Usage

gg_arma(data)

Value

A ggplot object the characteristic roots from ARMA components.

Arguments

data

A mable containing models with AR and/or MA roots.

Details

gg_arma() was soft deprecated in feasts 0.4.2. Please use ggtime::gg_arma() instead.

Produces a plot of the inverse AR and MA roots of an ARIMA model. Inverse roots outside the unit circle are shown in red.

Only models which compute ARMA roots can be visualised with this function. That is to say, the glance() of the model contains ar_roots and ma_roots.

Examples

Run this code
if (requireNamespace("fable", quietly = TRUE)) {
library(fable)
library(tsibble)
library(dplyr)

tsibbledata::aus_retail %>%
  filter(
    State == "Victoria",
    Industry == "Cafes, restaurants and catering services"
  ) %>%
  model(ARIMA(Turnover ~ pdq(0,1,1) + PDQ(0,1,1))) %>%
  gg_arma()
}

Run the code above in your browser using DataLab