首页 > 解决方案 > 如何解决 R 中 ggplot 的多个错误栏问题?

问题描述

ggplot(data)+ 
  geom_bar(aes(x=treatment, y=deg), stat = "identity", 
           width=0.4, position=position_dodge(0.9)) +
  geom_errorbar(aes(x=treatment, ymin=deg, ymax=deg+se), 
                width=0.2, position=position_dodge(width=1))

在此处输入图像描述

我不能做正确的错误栏,你可以看到多个错误栏来了。我不知道这里发生了什么。其不同的处理与分解率

标签: rggplot2errorbar

解决方案


推荐阅读