Closed
Description
Hi @cpsievert
Is there any way to let each trace remain associated with the same legend item (as opposed to having a new legend item for each plot)? Just the way ggplot2 does it?
thanks !
library(plotly)
library(reshape2)
ds <- data.frame(X = 1:100,
Y1 = rnorm(100),
Y2 = rnorm(100),
group = LETTERS[1:4])
ds <- melt(ds, id = c("X", "group"))
ggplot(ds, aes(X, value)) +
geom_point(aes(color = group)) +
facet_wrap(~variable)
ggplotly()
Metadata
Metadata
Assignees
Labels
No labels