1
我最近将R从2.x升级到3.1,我感觉有些变化我不知道与绘图模型有关。如何在R中绘制预测模型?
airpass_model = arima(log(AirPassengers) , order=c(0,1,1),
seasonal=list(order=c(0,1,1), period=12))
plot(airpass_model, n1=c(1969, 1), n.ahead=24, pch=19, ylab='Log(Air Passengers)')
执行第二行后出现以下错误。如果有人能解释为什么会很棒?
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' is a list, but does not have components 'x' and 'y'