由于我们不能scale_x_date()
与{tsibble}
对象一起使用,那么更改中断、标签等的方法是什么?
# metapackage
library(fpp3)
# data
melsyd_economy <- ansett %>%
filter(Airports == "MEL-SYD", Class == "Economy") %>%
mutate(Passengers = Passengers/1000)
# plot
autoplot(melsyd_economy, Passengers) +
labs(title = "Ansett airlines economy class",
subtitle = "Melbourne-Sydney",
y = "Passengers ('000)") +
scale_x_date(date_labels = "%Y", date_breaks = "2 year")