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
评论列表(0条)