-
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
P-value for multiple comparisons by group - stat_compare_means() #135
Comments
I have a similar problem from today after updating the ggpubr package, significance labels (*** etc) that used to be between columns by group disappeared the following,
and I get these errors: Removed 67697 rows containing non-finite values (stat_summary). any help would really be appreciated. |
I have the same problem too. Using the standard data. `library(ggpubr) p + stat_compare_means(method = "t.test", label = "p.format")` I got these errors and no p-values show up.
|
fixed now, thanks |
I am a beginner in R. The bug is fixed now, thanks but what should i do to use stat_compare_means now ? update ggpubr package ? It doesn't work. thank you |
Kindly install the latest developmental version of ggpubr as follow: if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/ggpubr") Let me know if it works on your computer, so that we can close this issue |
after install the last version from your link, the answer is the same Warning messages: I try with ToothGrowth datas library(ggpubr) p + stat_compare_means(method = "t.test", label = "p.format") thank you for your help |
Please, make sure you have re-started R. Please, provide the output of the R code devtools::session_info(). When posting your session info, insert the content inside , to make it more readable on GitHub. Thanks |
|
This is strange, try to install process R package 3.2.0 install.packages("processx") |
After process R installation `- Session info -------------------------------------------------------------------------------------
[1] C:/Users/benjd/OneDrive/Documents/R/win-library/3.4 V -- Loaded and on-disk version mismatch. but stat_compare_means shows |
I can see that you have the CRAN version of ggpubr. You need to install the latest developmental version from GitHub as follow: if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/ggpubr") |
It works!!! great. thank you |
the development version install resolved that for me too. thanks |
thank you!! |
I am trying to add p-values for my box plots, but I get an error: Computation failed in
stat_compare_means()
: argument is of length zeroWhere my data.frame: plot.data looks like:
Group value element
1 Transcribed, 0.08620690, Exons
2 Transcribed, 0.09090909, Exons
3 NonTranscribed, 0.02631579, Exons
4 Transcribed, 0.05882353, Introns
5 NonTranscribed, 0.04458599, Introns
6 NonTranscribed, 0.06716418, Introns
And my function is:
makeBoxPlot <- function(plot.data) { p <- ggplot(plot.data, aes(x = element, y = value, fill = Group)) stat_compare_means(aes(group = Group), paired = TRUE, label = "p.signif") }
I dont get any p-values bacause of the above error and I have no idea why I get this error, this function used to work before.
The text was updated successfully, but these errors were encountered: