-
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
Pass data parameter to Comparisons in stat_compare_means #48
Comments
Thank you for this well written and reproducible bug report. Fixed, now! Install the latest developmental version and kindly confirm that it works. |
Works great, thanks! |
so we can close this issue! |
Would it be possible to make it so additional params can be passed through to geom_signif? It would make it possible to adjust xmin/xmax and y_position so the tips fall over the correct bars when using subsetted data like in this example. Edit - NM, I realized that geom_signif doesn't allow both comparisons and x position to be set. |
Thanks for this great package kassambara. I was wondering whether emcnerny's last proposition (adjusting the x position so the tips fall over dodged bars in subsetted data) was feasible ? |
To add manually p-values from a data frame, use the function |
I would like to be able to use comparisons for a subset of the data passed to stat_compare_means. Right now you can do this to compare means against a reference group, but not for specified comparisons. For example, here I'm testing against the lowest dose only for the VC group:
Which produces:
![image](https://user-images.githubusercontent.com/4778287/32618741-8aa3b2fc-c546-11e7-97bd-923ec670587a.png)
But this does not work for comparisons (the data parameter is ignored, so it pools the supp groups):
Which produces:
![image](https://user-images.githubusercontent.com/4778287/32618397-a1101f2c-c545-11e7-9f0e-aec6afb464af.png)
A separate but related issue, any attempt to pass a label type with comparisons doesn't have the expected result:
The text was updated successfully, but these errors were encountered: