R 将月份添加到预测图中
我使用2017年1月至2019年7月的月度数据以及指数平滑的创新状态空间模型生成了一个一年期预测R 将月份添加到预测图中,r,ggplot2,forecasting,R,Ggplot2,Forecasting,我使用2017年1月至2019年7月的月度数据以及指数平滑的创新状态空间模型生成了一个一年期预测 库(“预测”) 图书馆(“ggplot2”) 图书馆(“天平”) myData这种代码很有效 autoplot(fcast_units)+ xlab("Year")+ ylab("Number of units")+ ggtitle("My forecast")+ scale_y_continuous(label=comma)+ scale_x_continuous(breaks
库(“预测”)
图书馆(“ggplot2”)
图书馆(“天平”)
myData这种代码很有效
autoplot(fcast_units)+
xlab("Year")+
ylab("Number of units")+
ggtitle("My forecast")+
scale_y_continuous(label=comma)+
scale_x_continuous(breaks = seq(2017 , 2020, 1/6))
检查[geom_vline](www.sthda.com/english/wiki/ggplot2-add-straint-lines-to-a-plot-horizontal-vertical-and-regression-lines),因为它可能会为您的案例提供帮助。