ap_df <- tsdf(AirPassengers)
# SEATS with defaults
ggplot(ap_df, aes(x = x, y = y)) +
stat_seas(start = c(1949, 1), frequency = 12)
# X11 with no outlier treatment
ggplot(ap_df, aes(x = x, y = y)) +
stat_seas(start = c(1949, 1), frequency = 12, x13_params = list(x11 = "", outlier = NULL))
ggplot(ldeaths_df, aes(x = YearMon, y = deaths, colour = sex)) +
geom_point() +
facet_wrap(~sex) +
stat_seas(start = c(1974, 1), frequency = 12) +
ggtitle("Seasonally adjusted lung deaths")Run the code above in your browser using DataLab