You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find ggplotly() a great tool for quickly investigating irregularities via hover, and I like to encourage my students to use it; however, the autoplot() legends disappear in the conversion to plotly losing all value in cases of plotting multiple series.
My hunch is that this is due to the color mapping quosure ^interaction(___, sep = "/"). Can anyone provide insight into what's happening and/or how I might be able to overcome it?
library(fpp3)
library(plotly)
data("aus_production")
long_prod<-aus_production %>%
pivot_longer(-Quarter)
# Expected chart with legendlong_prod %>%
autoplot()
# Expected chart with no legendlong_prod %>%
autoplot() %>%
ggplotly()
The text was updated successfully, but these errors were encountered:
I can't reproduce this with the latest versions of fabletools, plotly, and ggplot2. The legend still appears in the plotly output as it does with the ggplot2 plot. Perhaps try updating your packages? Let me know if this is still a problem after updating.
I realize this might be out of scope.
I find
ggplotly()
a great tool for quickly investigating irregularities via hover, and I like to encourage my students to use it; however, theautoplot()
legends disappear in the conversion to plotly losing all value in cases of plotting multiple series.My hunch is that this is due to the color mapping quosure
^interaction(___, sep = "/")
. Can anyone provide insight into what's happening and/or how I might be able to overcome it?The text was updated successfully, but these errors were encountered: