📜  如何在 r 中绘制均值和标准差 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:42.352000             🧑  作者: Mango

代码示例2
foo <- data.frame(color=c("black","red","orange"),
    mean.temp=c(37.93431,37.01423,36.61345),
    sd=c(2.267125,1.852052,1.339032))
plot(1:3,foo$mean.temp,pch=19,xlab="",ylab="",xaxt="n",xlim=c(0.5,3.5),
    ylim=c(min(foo$mean.temp-foo$sd),max((foo$mean.temp+foo$sd))))