Closed
Description
When showing a legend for categorical data, ggplotly works fine when only one aesthetic is used - but switches to show intervals rather than categories as soon as two different aesthetics are used.
Looking good:
p <- ggplot(mtcars, aes(wt, mpg)) + geom_boxplot(aes(col = factor(am))) + geom_rug(aes(col = factor(am)))
ggplotly(p)
Not looking good (just concerned about the legend, also fails where fill
aesthetic works):
p <- ggplot(mtcars, aes(wt, mpg)) + geom_boxplot(aes(fill = factor(am))) + geom_rug(aes(col = factor(am)))
ggplotly(p)
Metadata
Metadata
Assignees
Labels
No labels