Answers for "how to put mean and standard deviation in r"

R
3

r standard deviation

> duration = faithful$eruptions    # the eruption durations 
> sd(duration)                     # apply the sd function 
[1] 1.1414
Posted by: Guest on February-03-2021
0

how to plot mean and standard deviation in r

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))))
Posted by: Guest on June-30-2021

Code answers related to "how to put mean and standard deviation in r"

Browse Popular Code Answers by Language