plot.simple_dashboard: Plot a simple seasonal adjustment dashboard

View source: R/simple_dashboard.R

plot.simple_dashboardR Documentation

Plot a simple seasonal adjustment dashboard

Description

Function to plot a simple dashboard of a seasonal adjustment model.

Usage

## S3 method for class 'simple_dashboard'
plot(
  x,
  main = "Simple Dashboard",
  subtitle = NULL,
  color_series = c(y = "#F0B400", t = "#1E6C0B", sa = "#155692"),
  reference_date = TRUE,
  ...
)

Arguments

x

a "sc_dashboard" object.

main

main title.

subtitle

subtitle.

color_series

Color of the raw time series, the trend and the seasonally adjusted component.

reference_date

boolean indicating if the reference date should be printed.

...

other parameters (unused).

See Also

simple_dashboard.

Examples

data <- window(RJDemetra::ipi_c_eu[, "FR"], start = 2003)
sa_model <- RJDemetra::jx13(data, "RSA5c")
dashboard_data <- simple_dashboard(sa_model)
plot(dashboard_data, main = "Simple dashboard IPI - FR")


rjdqa documentation built on Oct. 5, 2023, 5:08 p.m.