I need help to add the adjusted p value (bonferroni for example) on ggplot boxplot instead of p value. I've try to do it with stat_compare_means
from ggpub package by using ..p.adj..
on the aesthetics, but it doesn't work when I add the comparison list.
ggplot(data= mydf, aes(x=B,y=A)) +
geom_boxplot() +
stat_compare_means(aes(label=..p.adj..),
comparisons = list(c("x","y"),c("x","z"),c("y","z")))
How about this;
I also recommend the you look at this post on R-bloggers