Closed mathykathy26 closed 6 years ago
same issue here! You can use
stat_compare_means(aes(label=..p.adj..))
to display the adjusted p-value.
However I could not figure out how to use that value for the asterisk-representation.
I will push update soon, thanks
Hi there, I'm facing the same issue, and to the stat_compare_means(aes(label="..p.adj..")) I got an error message:
"Error in .update_mapping(mapping, label): Allowed values for label are: p.signif, ..p.signif.., p.format, ..p.format.., p, ..p.."
Is there a solution to that?
Has there been a development in this issue? Any insights on how we can plot adjusted p values for plots involving multiple comparisons?
Thanks!
I am currently using this command: stat_compare_means(comparisons = comparisons_todo , method = "wilcox.test", p.adjust.methods = "fdr") but to no avail. Please help
I'm not completely sure if this is correct, but if one wants "Bonferroni" correction, he can use:
N = 3 #Number of comparisons symnum.args <- list( cutpoints = c(0, 0.0001/N, 0.001/N, 0.01/N, 0.05/N, 1), symbols = c("<0.0001", "<0.001", "<0.01", "<0.05", "ns") )
or
symnum.args <- list( cutpoints = c(0, 0.0001/N, 0.001/N, 0.01/N, 0.05/N, 1), symbols = c("*", "", "*", "", "ns") )
And then apply on stat_compare_means(label = "p.signif",symnum.args = symnum.args)
I am having the same issue. Due to large number of groups, use asterisks for significance based on p.adj is the only option. If I use the adjusted p-value, it will be just a mess on the figure. I thought about change the font size of p-value to avoid overlapping but would be too small to read. Just wondering if there is any update on this?
When using stat_compare_means() for multiple comparisons, the plot will not reflect the adjusted p-values. I imagine that any asterisks for significance are also based on the original p-value, not the adjusted. How can I specify which p-value I'd like to use to denote significance?