用ggplot2画箱线图叠加图层后变成一个很奇怪的样子,求救求救?

以下是代码:plot10 <- ggplot(subjectivedata1_1, aes(x = factor(number), y=standardscore, fill=sex)) +geom_boxplot()+scale_fill_discrete(name="sex")+labs(x="item number",y="standard score")+scale_color_discrete(name="sex")> plot10> plot10 <- plot10+stat_boxplot(geom = "errorbar",width = 0.1)> plot10尝试过调换geom_boxplot和stat_boxplot的位置,但是还是不行,依然很丑.......大神救命,作业......医学生,不是很会r在努力了

第1个回答  2022-09-10

如图所示,只是这样的errorbar真的是实际数据的标准误么,对此持保留意见

相似回答