admin管理员组

文章数量:1421762

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?

本文标签: rConverting Forecast Package Plots to PlotlyStack Overflow