[R] Basic question: why does a scatter plot of a variable against itself works like this?

2013-11-06 Thread Tal Galili
Hello all, I just noticed the following behavior of plot: x - c(1,2,9) plot(x ~ x) # this is just like doing: plot(x) # when maybe we would like it to give this: plot(x ~ c(x)) # the same as: plot(x ~ I(x)) I was wondering if there is some reason for this behavior. Thanks, Tal

Re: [R] Basic question: why does a scatter plot of a variable against itself works like this?

2013-11-06 Thread Marc Schwartz
On Nov 6, 2013, at 10:40 AM, Tal Galili tal.gal...@gmail.com wrote: Hello all, I just noticed the following behavior of plot: x - c(1,2,9) plot(x ~ x) # this is just like doing: plot(x) # when maybe we would like it to give this: plot(x ~ c(x)) # the same as: plot(x ~ I(x)) I was

Re: [R] Basic question: why does a scatter plot of a variable against itself works like this?

2013-11-06 Thread William Dunlap
-help@r-project.org Subject: [R] Basic question: why does a scatter plot of a variable against itself works like this? Hello all, I just noticed the following behavior of plot: x - c(1,2,9) plot(x ~ x) # this is just like doing: plot(x) # when maybe we would like it to give this: plot(x

Re: [R] Basic question: why does a scatter plot of a variable against itself works like this?

2013-11-06 Thread Barry Rowlingson
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Tal Galili Sent: Wednesday, November 06, 2013 8:40 AM To: r-help@r-project.org Subject: [R] Basic question: why does a scatter plot of a variable against itself works like this? Hello