Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Arima forecasting model

Hello,

 

I have visited the following url: 

 

https://community.powerbi.com/t5/R-Script-Showcase/ARIMA-forecasting/td-p/124237/highlight/false

 

where we can find a project named forecast_ARIMA_ShowCase.pbix

and the script that goes with the project 

 

I have open the project and I the following error (see the attached image capture)

I have try to install the packages scales, forecast and zoo but I am still getting the same error.

 

does someone know how to solve that issue?

Regards,

  • Hi Anonymous ,

     

    change line 558-559 to this.

     

    plot(forecast(prediction, lwd=pointCex, col=alpha(pointsCol,transparency), fcol=alpha(forecastCol,transparency), flwd = pointCex, shaded=fillConfidenceLevels,
    main = "", sub = pbiInfo, col.sub = infoTextColor, cex.sub = cexSub, xlab = labTime, ylab = labValue, xaxt = "n"))
     
     
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.

4 Replies

  • mwegener's avatar
    mwegener
    Most Valuable Professional

    Hi Anonymous ,

     

    change line 558-559 to this.

     

    plot(forecast(prediction, lwd=pointCex, col=alpha(pointsCol,transparency), fcol=alpha(forecastCol,transparency), flwd = pointCex, shaded=fillConfidenceLevels,
    main = "", sub = pbiInfo, col.sub = infoTextColor, cex.sub = cexSub, xlab = labTime, ylab = labValue, xaxt = "n"))
     
     
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.