[R] paste ?
Troels Ring
tring at mail1.stofanet.dk
Mon Apr 24 14:00:05 CEST 2000
Dear friends. I've made a very simple procedure to make Bland-Altman plots
and it works OK except for the inability to take a variate as argument in
annotation. I'm sure it is a very simple error, so if you have 5 seconds
please tell me.
Best wishes
Troels
bland <- function (x) #accepts two columns
{
mn <- 0.5*(x[,1]+x[,2])
diff <- x[,1]-x[,2]
plot(mn,diff,pch=16,xlab="Mean",ylab="Difference",
main = paste("Bland Altman plot",mn))
abline(h=mean(diff),lty=2)
abline(h=mean(diff)+c(2,-2)*sqrt(var(diff)))
}
Troels
look here:
http://www.wired.com/wired/archive/8.04/joy.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list