下面是我目前拥有的创建下图的代码。相反,我正在尝试制作一个图表,其中蓝色的箱形图(双关)在x轴上的标题为“双关语”,旁边是黄色的箱形图“mv”。
ggboxplot(
d, x = "Condition.Name", y = c("pun", "mv"),
merge = TRUE, palette = "jco",
title = NULL,
xlab = '',
ylab = ''
)

发布于 2020-10-09 23:43:55
使用mtcars,因为您没有提供数据。你需要使用combine而不是merge ggpubr::ggboxplot
library(ggpubr)
#> Loading required package: ggplot2
ggboxplot(
mtcars,
x = "am",
y = c("disp", "hp"),
combine = TRUE,
color = c("#0073C2FF", "#EFC000FF", "#0073C2FF", "#EFC000FF"),
title = NULL,
ylab = ''
)

https://stackoverflow.com/questions/64281903
复制相似问题