我有以下数据:
a_ray<-c(12,13,14,15,16,16,14,14,15,16,16,16,23,14)
b_ray<-c(23,24,25,21,23,23,23,26,27,25,24,25,24,24)
c_ray<-c(45,32,34,36,48,32,31,34,49,50,58,56,58,32)
group<-c(0.12,0.28,0.29,0.36,0.15,0.65,0.54,0.28,0.08,0.14,0.03,0.06,0.09,0.25)
mydata<-cbind(a_ray,b_ray,c_ray,group)
我想为这个数据集绘制平均值和误差线。x轴的标签是:a_ray、b_ray和c_ray,y轴是这些射线的值(称为“射线值”),我的数据中还包含一个变量“组”,我想在一张图中画两条线,一条线关于“Group<0.2”,另一条线关于“Group>=0.2”,预期图形如下: