【发布时间】:2020-06-19 09:35:46
【问题描述】:
我是 R 的初学者,我想知道是否可以在使用 ggplot2 包的数据可视化方面获得一些帮助。
我正在尝试使用调整后的 p 值(使用 Bonferroni 校正)而不是带有星号的正常 p 值来标记显着性水平。
我试过的代码是……
stat_compare_means(aes(label=..p.adj.., group=sample_type), label = "p.signif", method = "t.test", hide.ns = TRUE)
stat_compare_means(aes(group=sample_type), p.adjust.method = "bonferroni", label = "p.signif", method = "t.test", hide.ns = TRUE)
【问题讨论】:
-
如果您包含一个简单的reproducible example,其中包含可用于测试和验证可能解决方案的示例输入和所需输出,则更容易为您提供帮助。
标签: r ggplot2 statistics p-value