预测错误(列表)对象无法强制键入“double”

时间:2017-09-17 10:40:18

标签: r time-series arima

当我尝试使用R:

运行以下代码时
 d.arima=autoplot(vv, ts.colour = ('dodgerblue3'), ts.linetype =  'dashed',
 xlab='Date',ylab='Consommation des pdts pétroliers',
 main="Evolution de la consommation mensuelle des produits pétroliers")
 d.forecast <- forecast(d.arima, level = c(80,95), h = 50)
 autoplot(d.forecast)

我收到此错误:

  Error in is.constant(y) : 
  (list) object cannot be coerced to type 'double'

PS:

class(d.arima)
[1] "gg"     "ggplot"

有人能帮我解决问题吗?

0 个答案:

没有答案