-
Notifications
You must be signed in to change notification settings - Fork 633
ggplotly does not support axes on right or top (ggplot 2.2.0) #808
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
This should simply involve checking the axis position in the ggplot object and changing the axis position in the ggplot object appropriately: https://community.plot.ly/t/move-axis-labels-to-top-right/534 Scale position is available in |
ggplot$scales$scales[[1]] tends to be the colour scale (if present) while the others are only present if modified. The quick and dirty solution would be to apply across them and return TRUE if |
Pulling in the information itself is trivial during ggplotly, eg:
However, this does not affect the output (the y-axis is not shown if side==="right") |
Actually, on further testing, this fix may work. I will try some extra testing and submit a PR if needed |
@alanocallaghan I wonder if the fix has been put in place. |
Doesn't look that way to me |
ggplot 2.2.0 newly added right/top axis placements. ggplotly does not currently respect the axis placement set in the ggplot objects in the resultant html
The text was updated successfully, but these errors were encountered: