如何在r

问题描述 投票:0回答:2
我的代码是获取框图和Cohen的D:

library(ggpubr) library(ggplot2) library(effsize) p <- ggboxplot(d, x = "Class", y = "Response", color = "Class", palette = "jco", add = "jitter") p + stat_compare_means(method = "t.test") with(d, cohen.d(Response,Class))
我只想使用我的代码将Cohen的D添加到BoxPlot。

在这里是预期的结果

如果您想在enter image description hereggpubr框架内完成所有操作,则可以尝试:

r ggplot2 boxplot ggpubr
2个回答
1
投票


在2023-02-07创建
reprexv2.0.2

@AllanCameron 我有这个错误,尚未解决。

eRror in

0
投票
: 呢计算美学的问题。 ℹ在第三层发生错误。 由

FUN()

中的错误引起的: 呢'...'在不正确的上下文中使用

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.