gem_errorbar在facet_wrap之后搞砸了

时间:2016-07-27 00:57:36

标签: r ggplot2 facet-wrap

很难将错误栏修复到我的观点

library(ggplot2)
limits <- aes(ymax = newtable$MN + newtable$SE,ymin = newtable$MN - newtable$SE)

p = ggplot(newtable,aes(Year,MN,group=variable,colour=variable))

p1 = p + geom_point(data=newtable,aes(colour=variable)) + 
         geom_errorbar(data=newtable,limits) + facet_wrap(~Region,scales = "free_y")

enter image description here

0 个答案:

没有答案