Re: [R] plotting two variables with a third used for color

2009-03-21 Thread JiHO
On 2009-March-20 , at 16:23 , David Winsemius wrote: On Mar 20, 2009, at 3:55 PM, Altaweel, Mark R. wrote: I have a problem where I have two columns of data that I can simply plot using: plot(wV[0:15,3],wY[0:15,3]). Perhaps: plot(wV[0:15,3],wY[0:15,3], col = ifelse(wY[0:15,3]>0, "blue","

Re: [R] plotting two variables with a third used for color

2009-03-20 Thread David Winsemius
On Mar 20, 2009, at 3:55 PM, Altaweel, Mark R. wrote: I have a problem where I have two columns of data that I can simply plot using: plot(wV[0:15,3],wY[0:15,3]). Perhaps: plot(wV[0:15,3],wY[0:15,3], col = ifelse(wY[0:15,3]>0, "blue","red") ) This produces my desired plot. Now, say I ha

[R] plotting two variables with a third used for color

2009-03-20 Thread Altaweel, Mark R.
I have a problem where I have two columns of data that I can simply plot using: plot(wV[0:15,3],wY[0:15,3]). This produces my desired plot. Now, say I have a third variable that I would like to introduce and use that variable to set different colors in the plot In this case, say I wanted val