-
Notifications
You must be signed in to change notification settings - Fork 633
Incorrect z-ordering with geom_errorbarh #513
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
Fixed via 03d3e54 |
Unfortunately this still doesn't work for me with the current version (3.4.9). I'm now not getting any error bars (using the above example): ggplotly(fig1) Updated
|
Thanks for reporting, this will be fixed soon. PS. unfortunately, given plotly.js' current infrastructure for error bars, I don't think it is possible to faithfully convert ggplot2's GeomErrorbar and guarantee a sensible legend. But, you can layer points before the bars to get a sensible legend. ggplot(df, aes(x=x, y=y, text=label, colour=group)) +
geom_rect(fill='lightgrey', colour='lightgrey', xmin=3, xmax=4, ymin=-4, ymax=7) +
geom_point() + geom_errorbarh(aes(xmin=left, xmax=right)) +
theme_bw() |
Thanks for taking care of this so promptly. |
Use transparent scatter lines for errorbars. Fixes #513.
I've encountered a problem where layers appear in the wrong order when using geom_errorbarh to plot error bars. Consider the following example:
A workaround is to use geom_segment instead
Here is the output from devtools::session_info()
The text was updated successfully, but these errors were encountered: