Re: [R] linear line in x, y plot

2013-10-28 Thread Jim Lemon
On 10/29/2013 02:30 AM, Ahmed Attia wrote: Hi I have a question about drawing a linear line in x, y plot. I usually use the following code, but for this time the x values are to small (-0.08 to -0.02) I wrote the following code, but r does not draw the line. However, it does not give an error w

Re: [R] linear line in x, y plot

2013-10-28 Thread David Winsemius
On Oct 28, 2013, at 8:30 AM, Ahmed Attia wrote: Hi I have a question about drawing a linear line in x, y plot. I usually use the following code, but for this time the x values are to small (-0.08 to -0.02) That is not the problem. I wrote the following code, but r does not draw the line.

Re: [R] linear line in x, y plot

2013-10-28 Thread Adams, Jean
A few problems ... This statement doesn't make sense. seq(-0.08, -0.02, len = -0.02) Perhaps you meant seq(-0.08, -0.02, by = 0.02) The xlim= and ylim= are arguments to higher level plot functions, like plot(), and won't work for functions lines() or abline(). Are you trying to limit the range o

[R] linear line in x, y plot

2013-10-28 Thread Ahmed Attia
Hi I have a question about drawing a linear line in x, y plot. I usually use the following code, but for this time the x values are to small (-0.08 to -0.02) I wrote the following code, but r does not draw the line. However, it does not give an error when it takes the code. reg1<- lm(CWSI~NWI,