Re: [R] Plot 1:1 relationship

2011-01-28 Thread Greg Snow
r- > project.org] On Behalf Of Sarah Goslee > Sent: Friday, January 28, 2011 10:53 AM > To: Peter Francis > Cc: r-help@r-project.org > Subject: Re: [R] Plot 1:1 relationship > > abline() takes the intercept and slope, which for a 1:1 relationship > are 0 and 1, respectively.

Re: [R] Plot 1:1 relationship

2011-01-28 Thread Sarah Goslee
abline() takes the intercept and slope, which for a 1:1 relationship are 0 and 1, respectively. So: abline(0, 1) Sarah On Fri, Jan 28, 2011 at 10:42 AM, Peter Francis wrote: > Dear list, > > I am looking to plot a line on a graph to show the 1:1 relationship, in order > to demonstrate the patte

[R] Plot 1:1 relationship

2011-01-28 Thread Peter Francis
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 <-