-
Notifications
You must be signed in to change notification settings - Fork 633
ggplotly unable to handle multiple legends properly in layered charts generated by ggplot2 #1164
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
Comments
Will have to wait until plotly.js can support multiple legends -- plotly/plotly.js#1668 |
Is there a way to avoid/ suppress the brackets, when combining the legends of two dimensions? In my usecase it would be possible to paste two dimensions together e.g. |
+1 Would also be interested in this feature. Even having the option to choose which one I want to choose would be a nicer option than the merge. |
Do you know if this has been fixed? I am still getting this error. If this has not been fixed, is there a way to work around it by using something other than ggplot or plotly? |
I think this issue is addressed in #572. The solution is to use aes outside geom for unwanted legends if the program is run in R Studio. In R Shiny, use |
due to missing functionality in function used for interactive plotting `plotly::ggplotly()` (see issue described here: plotly/plotly.R#1164)
From the example in http://bxhorn.com/legends-ggplot/#managing-multiple-legends-in-a-layered-chart
This is the ggplot2 output:

This is the ggplotly output:

The text was updated successfully, but these errors were encountered: