Skip to content
Prev 287990 / 398500 Next

How do I do a pretty scatter plot using ggplot2?

On 03/10/2012 11:37 AM, Michael wrote:
Hi Michael,
While it is not in ggplot2, a variation on the count.overplot function 
might do what you want. This function displays counts of closely spaced 
points rather than the points, but it applies the same area of 
aggregation across the whole plot. Getting the equal x bins is easy, and 
I assume that you mean equal observations within each bin, not across 
all bins. If you are stuck, I can probably hack up something from 
count.overplot.

Jim