[R] Plot 1:1 relationship
Peter Francis
peterfrancis at me.com
Fri Jan 28 16:42:40 CET 2011
Dear list,
I am looking to plot a line on a graph to show the 1:1 relationship, in order to demonstrate the pattern i have observed is off the line, however i am unsure. I have tried abline but i can not see a function to plot the 1:1?
Any help would be greatly appreciated
#generate data
y <- rnorm(30, mean=1.5, sd= 0.005)
x <- rnorm(30, mean=1.5, sd= 0.005)
plot(x,y)
Thanks,
Peter
More information about the R-help
mailing list