Skip to content

subplot doesn't merge legend entries #675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cpsievert opened this issue Aug 10, 2016 · 2 comments
Closed

subplot doesn't merge legend entries #675

cpsievert opened this issue Aug 10, 2016 · 2 comments

Comments

@cpsievert
Copy link
Collaborator

m <- split(mtcars, mtcars$vs)
subplot(lapply(m, function(x) plot_ly(x, x = ~mpg, y = ~wt, color = ~factor(cyl))))
@ramay
Copy link

ramay commented Feb 21, 2017

Hi ,
I am having the same problem. Have you found a solution to this?

Interestingly for my data, in one case it is merging legends and in another case it is not. I had added legendgroup and used showlegend to show legend for one of the two plots.

I am attaching my data and code used in the two plots so you can see what is happening.

Thanks!
Hena
subplot_Merge_Issue.zip

@cpsievert
Copy link
Collaborator Author

@ramay see this test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants