r - Converting Forecast Package Plots to Plotly - Stack Overflow

I'm trying to convert an object compatible with the forecast package into a Plotly object.library

I'm trying to convert an object compatible with the forecast package into a Plotly object.

library(fabletools)
library(forecast)
library(plotly)


test_plot<-fdeaths %>% 
  forecast() %>% 
  autoplot() 

However, it's not working as expected. I'm trying to create an identical plot, but as you can see, it lacks the confidence intervals and the projection for the coming years.

    plotly_plot<-ggplotly(test_plot)
plotly_plot

Can anyone help me figure out how to produce the same plot in Plotly?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745351754a4623874.html

相关推荐

  • r - Converting Forecast Package Plots to Plotly - Stack Overflow

    I'm trying to convert an object compatible with the forecast package into a Plotly object.library

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信