Horizontal bars with stars realative to each pairwise comparison into boxplots
I'm trying reporting into the following plot some multiple pairwise comparison. In order to this I have just scripted down the following code p <- ggboxplot(data, x = "TREATMENT", y = "Feature1", color = "SESSION", palette = "npg", facet.by = "SESSION", short.panel.labs = FALSE) # Use only p.format as label. Remove method name. p + stat_compare_means( aes(label = paste0("p = ", ..p.format..)) )+ stat_compare_means(method = "t.test", label.y = 40)+ # Add global p-value stat_compare_means(aes(label = ..p.signif..), method = "t.test", ref.group = "TRT-A") Just by using the showing horizontal bars
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.