首页 > 解决方案 > 每次我尝试在我的图表中添加错误栏时,它都会给我下面的错误

问题描述

sx_mean = sx %>% 
  group_by(modulename) %>% 
  summarise(mean = mean(pr), SE = sd(pr)/sqrt(length(pr)))


ggplot(data = sx_mean ) +
   geom_point( aes(x = module, y = mean, fill = Value), size = 2.5, color = "seagreen") +
      geom_errorbar(aes(ymin=mean-SE, ymax=mean+SE))

data.frame(list(ymin = c(2.05161888719508, 1.8746390713981, 1.28228295778586, : 参数暗示不同的行数: 10, 31

标签: rggplot2errorbar

解决方案


推荐阅读