Skip to content
Prev 132349 / 398506 Next

Scatterplot Showing All Points

On 18/12/2007 7:31 AM, Antony Unwin wrote:
Sure.  The original post said there were about 50-60 unique locations. 
This plot:

x <- rbinom(5000, 20, 0.15)
y <- rbinom(5000, 20, 0.15)
plot(x,y)

has a few more unique locations; tune those probabilities if you want it 
closer.  Due to the overlap, the distribution is very unclear.  But this 
plot

plot(jitter(x), jitter(y))

makes the distribution quite clear.

I wouldn't use the default pch if I had 50000 points, but with pch=".", 
it's not so bad even in that case.

Duncan Murdoch