Learn R Programming

seasonal (version 0.20.2)

plot.seas: Plot the Adjusted and Unadjusted Series

Description

plot method for class "seas". Plot the adjusted and unadjusted series, as well as the outliers. Optionally draw the trend series.

Usage

## S3 method for class 'seas':
plot(x, outliers = TRUE, trend = FALSE,
    ...)

Arguments

x
an object of class "seas", usually, a result of a call to seas.
outliers
logical, should the oultiers be drawn
trend
logical, should the trend be drawn
...
further arguments passed to ts.plot.

Value

  • returns a plot as its side effect.

See Also

seas for the main function.

Examples

Run this code
x <- seas(AirPassengers, regression.aictest = c("td", "easter"))
plot(x)
plot(x, outliers = FALSE)
plot(x, trend = TRUE)

Run the code above in your browser using DataLab