Learn R Programming

arima2 (version 3.3.0)

plot.Arima2: Plot Arima2 object

Description

This function plots time series data loaded from an Arima2 object or plots inverse roots of the AR or MA polynomials in a fitted ARIMA model on the complex unit circle.

Usage

# S3 method for Arima2
plot(x, roots = TRUE, title = NULL, tick.lab = NULL, ...)

Value

Arima 2 plot, which is a ggplot2 object. Type of plot is indicated through roots parameter.

Arguments

x

An Arima2 object. This parameter is an object created using the function arima2().

roots

Would you instead prefer to plot the roots on a unit circle? Insert logical type here.

title

Title of plot

tick.lab

Time vector of numeric or character/string type.

...

Other parameters

Details

The output of this function is a ggplot object, so layers may be added to the output of this function using ggplot2's plus operator.

Examples

Run this code
plot(arima(lh, order = c(1,0,1)))
plot(x = arima(lh, order = c(3,0,1)), roots = FALSE)

Run the code above in your browser using DataLab