Hi,

I would like to add a line under the top stat symbols. Any help would be much appreciated.

Here is my code :

gv_interest = ggboxplot(dat_viogenes, x = "Condition",
y = colnames(dat_viogenes)[1:19],
combine = T,
fill="Condition") +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
stat_compare_means( method = "anova", size = 4, label.y = 3, vjust=1.2, label = "p.signif", hjust=-2.5, tip.length = 0.01)+

stat_compare_means(comparisons = my_comparisons, method = "t.test",label.y = 1.75,, size= 4,
method.args = list(alternative="greater"), label = "p.signif") # Add pairwise comparisons p-value

gv_interest

Thanks

You could use this