[R] Scatterplot - Overlap Frequency

2010-08-12 Thread Mestat
Hi listers... I am working o a scatterplot where I would like to plot the variables according with another frequency variable. Another friend here proposed this code... x - rnorm(10) y - rnorm(10) ind - c(1,0,1,0,1,0,1,1,0,0) plot(x, y, col = ind + 1, pch = 16) # 1 is black, 2 is red But in my

Re: [R] Scatterplot - Overlap Frequency

2010-08-12 Thread Wu Gong
Hi Marcio, Your friend has given the answer. x - rnorm(10) y - rnorm(10) ind - c(3,0,1,0,3,0,2,2,0,0) plot(x, y, col = grey(0:max(ind)/max(ind))[ind], pch = 16) Mestat wrote: I am working o a scatterplot where I would like to plot the variables according with another frequency

Re: [R] Scatterplot - Overlap Frequency

2010-08-12 Thread Greg Snow
...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Mestat Sent: Thursday, August 12, 2010 2:20 PM To: r-help@r-project.org Subject: [R] Scatterplot - Overlap Frequency Hi listers... I am working o