-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add error bars in box plots #105
Comments
stat_boxplot() adds a specific errorbar to the box plot using median +/- 1.5*IQR. In ggpubr, you have the generic option add = I think that, we need a new argument in |
I agree. In addition, You can observe the same behavior, if you exchange the order of those two function calls like this
Or isn't this the code you had in mind with
|
I took a quick look at the
in line 198. In addition adding the boolean argument I never checked an unfamiliar package before, so I'll need some time to create a pull request (assuming this works), if you won't implement it yourself first anyways. |
Man you work fast. Keep up the good work! |
Thank you for the feedback, highly appreciated! |
@kassambara This is a great functionality. I noticed that the default color for the error bar is black. Do you know if it can be changed to the one I set in "color="? Thank you very much! |
Thanks, @kassambara for the update, when I try
The error bar doesn't appear on each of the fill boxplots |
Hi there Has this been fixed? When using a variable as the "fill" or "color" condition, the bxp.errorbar function seems tobe calculated for the entire dataset grouped by the "x" variable, rather than the subgroups created by the "fill" condition.
|
@RoseString, @Keniajin, @jaydoc: fixed now, thanks! |
That was literally the quickest a developer has fixed an issue in my experience! Thanks a bunch. |
I'm not quiet sure whether I don't understand the syntax or it's not implemented yet, but how do I add an errorbar to a box plot with
ggpubr
?Lets say we have the same toy data all over again.
What I like to have is something like this:
But I haven't been able to implement the exact same mechanism with
ggpubr
. I triedbut it appears that this function returns the errorbar of the mean and not the limits I want to border the box plots with.
The text was updated successfully, but these errors were encountered: