0
當我將第一個x條件指定爲ref.group時,所有後續條件都標記爲sig。或ns。stat_compare_means參考組僅適用於第一次使用
但是,當我指定任何其他條件時,只有後來標記的條件。例如,如果我指定最後一個條件ref.group =「6.5-0524」,則前面的點都不標記爲sig。或ns。
在GGPLOT2:
p7 <- ggplot(data, aes(x=condition, y=count)) +
geom_point(position=position_jitter(width=.1,height=0), shape=16, size=2, alpha=7/10, color="forestgreen") +
stat_compare_means(label = "p.signif", method = "wilcox.test", ref.group = "6.5-0524") +
scale_x_discrete(breaks=c("0-0510","1-0524","2-0510","5.5-0510","6.5-0510","6.5-0524"), labels=c("0","1","2","5.5","6.5-A","6.5-B"))
您的數據實際是什麼樣子?在黑暗中很難排除故障。請看這裏:https://stackoverflow.com/help/mcve&https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example –
我認爲這是與任何數據集。參考文獻必須在劇情中首先出現嗎? – James