[R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
Dear all, When making a plot with the command plot(xVector, yVector), there are many points that collide on the same place in the plot. In order to make this plot clearer, I have been looking for a way to colour the points based on the number of points that fall onto each other. If only one point

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Prof Brian Ripley
This is one of the main points of supporting semi-transparent colours. You haven't told us your platform or graphics device (see the posting guide), but plotting with something like col=rgb(0,0,0,0.2) may work. On Thu, 27 Jan 2011, Aditya Bhagwat wrote: Dear all, When making a plot with the

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
Dear Prof. Ripley, Thanks for your reply. This is one of the main points of supporting semi-transparent colours. You haven't told us your platform or graphics device (see the posting guide), but plotting with something like col=rgb(0,0,0,0.2) may work. I am working on Ubuntu Linux. and I

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
I googled a bit and found that cairo needs to be installed on Ubuntu. Through Ubuntu package manager, I installed package r-cran-cairodevice, but that doesn't seem to solve the problem. Aditya On Thu, Jan 27, 2011 at 10:43 AM, Aditya Bhagwat bhagwatadi...@gmail.comwrote: Dear Prof. Ripley,

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Prof Brian Ripley
On Thu, 27 Jan 2011, Aditya Bhagwat wrote: Dear Prof. Ripley, Thanks for your reply. This is one of the main points of supporting semi-transparent colours. You haven't told us your platform or graphics device (see the posting guide), but plotting with something like