我正在使用预测制作情节。但是,由于预测线没有与数据线连接,因此很难看到它的结束位置和开始位置。我试过这个,但它没有用。有没有人有建议?请帮忙
v1 <- c(2014.4,2014.5,2014.6,2014.7,2014.8,2014.9,2014.10,2014.11,2014.12,2015.1,2015.2,2015.3,2015.4,2015.5,2015.6,2015.7,2015.8,2015.9,2015.10,2015.11,2015.12,2016.1,2016.2,2016.3)
v2 <- c("2014.4","2014.5","2014.6","2014.7","2014.8","2014.9","2014.10","2014.11","2014.12","2015.1","2015.2","2015.3","2015.4","2015.5","2015.6","2015.7","2015.8","2015.9","2015.10","2015.11","2015.12","2016.1","2016.2","2016.3")
library(forecast)
aaa.ts.hw.fc <- forecast.HoltWinters(aaa.ts.hw, h=5)
plot.forecast(aaa.ts.hw.fc, axis(side = 1, at = v1, labels = v2))
链接到我的图片:(http://i.imgur.com/FmLIYhF.jpg)