最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

r - Converting Forecast Package Plots to Plotly - Stack Overflow

programmeradmin9浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论