Hello, I'm currently trying to ad significant stars (on a within comparaison analysis) on my ggplot using this code:
>df <- data.frame(x = GOL5$Tache, y = GOL5$value)
p <- ggplot(GOL5, aes(Tache, value)) +
geom_dotplot(binaxis = "y", dotsize= .01)+
geom_jitter(position=position_jitter())+
geom_boxplot(alpha=.5 )+
theme_classic()+
ggtitle("GOL5 ")+
labs(y="Valeur d'asymétrie")+
labs(x="Tâche")
df_pair <- ggstatsplot::pairwise_p(df, x, y,paired = TRUE, p.adjust.method = "holm")
ggstatsplot:::ggsignif_adder(
plot = p,
df_pairwise = df_pair,
data = df)
So i get this graph with this data :
But, i would love to able to specify the of comparaison i want for the p-value. Because when i do:
KK8<-pairwise.t.test(GOL5$value, GOL5$Tache, paired = TRUE)
KK8=p.adjust(KK8$p.value, method = "holm", n = 54)
KK8=as.data.frame(KK8)
KK5pvalue=as.data.frame(KK8$KK8)
I dont get the same significance for the data, like the comparaison between LECTM and SEM should not be significant as we see in this table on the post column (column of the pvalue post adjustment with 54 comparaisons) :
Signif table post adjust
So my goal is to have the value from KK8 for the significative value on my plot, because the geom_signif doesn't allow me to specify I want to correct with 54 comparaison on 'holm'.
I hope I'm clear...