ggplotly removes the geom_line graphic legend using ggplot.
See below:
library(plotly)
g <- ggplot(iris)
g = g + geom_line(aes(x = Sepal.Length, y = Sepal.Width, color = Species), size = 0.05)
g
(gg <- ggplotly(g))
Any ideas on how to bring back the legend?
I am using plotly_2.0.19 and ggplot2_2.0.0.9.9000.
source
share