-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Added feature to separately color the middle line of crossbar and box… #3505
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
Conversation
…plot To realize the minimalist style of boxplot like the one inside http://biochemres.com/beautiful-minimalist-boxplots-with-r-and-ggplot2 Instead of adding extra geom_segment over geom_boxplot, now the color of middle bar can be colored separately by setting middle.colo(u)r. And this feature can be turned off by setting separate.middle = FALSE, the middle bar will be colored with the outline of boxplot/crossbar by the col parameter, which acts as what ggplot2 does currently
Please take a look at this comment and the surrounding conversation: |
I've read the #3485, and I think my pull request is not like it, I just want to make the plot look better, because in the past for making the boxplot/crossbar have the same |
I think a geom can have colour-related parameters outside of the hierarchy of aesthetics, as |
In my opinion, moving color parameters outside of the hierarchy of aesthetics is almost never warranted. |
Ah, agreed. So, do you mean this PR should consider moving |
That should at least be under consideration, yes. |
OK, I'll try to put it into the hierarchy of aesthetics, thank you for your suggestions! |
Closing this PR. @capebulbs: If you still plan to implement this feature along the lines outlined in my comments, please open a new PR. |
…plot
To realize the minimalist style of boxplot like the one inside
http://biochemres.com/beautiful-minimalist-boxplots-with-r-and-ggplot2
Instead of adding extra geom_segment over geom_boxplot, now the color of middle bar can be colored separately by setting middle.colo(u)r. And this feature can be turned off by setting separate.middle = FALSE, the middle bar will be colored with the outline of boxplot/crossbar by the col parameter, which acts as what ggplot2 does currently