p_ipi_fr <- ggplot(data = ipi_c_eu_df, mapping = aes(x = date, y = FR)) +
geom_line(color = "#F0B400") +
labs(title = "Seasonal adjustment of the French industrial production index",
x = "time", y = NULL)
# To add the seasonal adjusted series:
p_ipi_fr +
geom_sa(color = "#155692")
# To add the forecasts of the input data and the seasonal adjusted series:
p_sa <- p_ipi_fr +
geom_sa(component = "y_f", linetype = 2, message = FALSE, color = "#F0B400") +
geom_sa(component = "sa", color = "#155692", message = FALSE) +
geom_sa(component = "sa_f", color = "#155692", linetype = 2, message = FALSE)
p_sa
Run the code above in your browser using DataLab