-
Notifications
You must be signed in to change notification settings - Fork 73
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
Legends for side colour plots #35
Comments
It may be necessary to transition the side colour plots to native plotly to be able to fully control this |
An (ugly) workaround is to set the overall legend y position to zero, which puts it at the bottom, hopefully out of the way of the colorbar. Ideally you would allow the user to move and resize both. |
It seems that plotly doesn't respect colorbar adjustments in subplots for some reason. I'll raise an issue over there shortly |
Thanks for taking this issue on @alanocallaghan Tal |
Can be dealt with in #141 |
Currently
layout(showlegend=FALSE)
is run on the subplot object. This prevents any modifications of the colorbar usingcolorbar()
but it also hides the legend for the side colour plots (and dendrogram traces). We can get around this by settingshow_legend
on the actual plotly objects as they are created. Unfortunately this is not consistent betweenplot_ly(..., showlegend=FALSE)
andggplotly() %>% layout(showlegend=FALSE)
. Furthermore, after adding the extra legend, it will be necessary to dodge the colorbar and the trace legendExample of all legends together: http://imgur.com/a/TN7UK
The text was updated successfully, but these errors were encountered: