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 found issues related to ggplot2's legend positioning, but couldn't find any addressing the fact that ggplotly ignores group labels changed by scale_color_discrete (or similar).
In contrast, it is able to handle a change in tick labels done in a similar manner using scale_x_discrete. You can find an example below with the iris dataset.
It would be great if you could add support to this!
# change in tick labels supportedgg<- ggplot(iris, aes(x=Species, y=Sepal.Width)) +
geom_boxplot() +
scale_x_discrete(labels=c("a", "b", "c)"))
gg
ggplotly(gg)
# change in group labels not supportedgg<- ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, group=Species, color=Species)) +
geom_point() +
scale_color_discrete(labels=c("a", "b", "c"))
gg
ggplotly(gg)
Activity