I was using forecast to make a plot. But, since the forecast line didn't connect with the data line, it was quite hard to see where it end and where it began. I have try this one, but it didn't work. Does anyone have suggestion? Please help
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))
Link to my image : (https://i.stack.imgur.com/Y7C4Q.jpg)