plot.sa_dashboard: Plot a seasonal adjustment dashboard

Description Usage Arguments Details References See Also Examples

View source: R/seasonal_dashboard.R

Description

Function to plot a dashboard of a seasonal adjustment model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'sa_dashboard'
plot(
  x,
  main = "Seasonal Adjustment Dashboard",
  subtitle = "",
  raw_color = "#33A02C",
  sa_color = "#E31A1C",
  trend_color = "black",
  ...
)

Arguments

x

a "sa_dashboard" object.

main

main title.

subtitle

subtitle.

raw_color

color for the raw series.

sa_color

color for the seasonal adjusted series.

trend_color

color for the trend.

...

other parameters (unused).

Details

sa_model() reproduces Statistics Canada dashboard used to provide a snapshot snapshot of an single seasonal adjustment model at a point in time and to point out some possible problems (see references).

The dashboard is divided into four sections:

References

KIRCHNER R., LADIRAY D., MAZZI G. L. (2018), "Quality Measures and Reporting for Seasonal Adjustment", edited by G. L. Mazzi, co-edited by D. Ladiray, European Union, Luxembourg. https://ec.europa.eu/eurostat/web/products-manuals-and-guidelines/-/KS-GQ-18-001

MATTHEWS S. (2016), "Quality Assurance of Seasonal Adjustment for a Large System of Time Series", 36th International Symposium on Forecasting Santander, Spain.

See Also

sa_dashboard.

Examples

1
2
3
4
5
data <- window(RJDemetra::ipi_c_eu[, "FR"], start = 2003)
sa_model <- RJDemetra::x13(data, "RSA5c")
dashboard_data <- sa_dashboard(sa_model)
plot(dashboard_data, main = "My first seasonal adjustment dashboard",
     subtitle = "SA with X13")

rjdqa documentation built on Aug. 7, 2020, 1:06 a.m.