Hey guys I am trying to validate my dataforecasts , both tabulary and grafically. Problem is that I cant find autolayer both in forecast or in ggplot2.
Here my code:
Actuals_TS = ts(data_testing_monthly, start=c(2013, 02), end = c(2018,05), frequency = 12)
plot.ts ( Actuals_TS,type ="l", main= testing[p], xlab = "BM", ylab = "Billings")
forecast1 <- window (Actuals_TS, start = c(year,01), end =c(2017,11))
fit1 <- meanf (forecast1,h=6)
fit2 <- rwf (forecast1, h=6)
fit3<- snaive (forecast1, h=6)
fc_monthlyhwa<-forecast ( ets(forecast1, model ="AAA", damped =FALSE))
fc_monthlyauto<- forecast (ets(forecast1, model ="ZZZ", damped =FALSE))
autoplot(window(Actuals_TS, start= c(2014,01), xlab = "BM", ylab = "Billings")+
now to the essential part
neither
forecast::autolayer(fc_monthlyhwa, series="Holt Winters Additive", PI=FALSE) )
nor
ggplot2::autolayer(fc_monthlyhwa, series="Holt Winters Additive", PI=FALSE) )
and
autolayer(fc_monthlyhwa, series="Holt Winters Additive", PI=FALSE) )
does work.....
It shows the vollowing error message:
Error: 'autolayer' is not an exported object from 'namespace:forecast' or that it is not known.
Can anyone help me?
Best regards
Anna