[R] drawing dot plots with size, shape affecting dot characteristics

2010-08-12 Thread Brian Tsai
Hi all, I'm interested in doing a dot plot where *both* the size and color (more specifically, shade of grey) change with the associated value. I've found examples online for ggplot2 where you can scale the size of the dot with a value:

Re: [R] drawing dot plots with size, shape affecting dot characteristics

2010-08-12 Thread Michael Bedward
Try running this and see if it does what you want. It just uses plain old plot with the cex arg for size and the col arg for colour... greyDots - function() { # make up some data x - runif(50, 0, 10) y - runif(50, 0, 10) valueMax - 100 value - sample(valueMax, 50) # edit these to

Re: [R] drawing dot plots with size, shape affecting dot characteristics

2010-08-12 Thread Hadley Wickham
On Wed, Aug 11, 2010 at 10:14 PM, Brian Tsai btsa...@gmail.com wrote: Hi all, I'm interested in doing a dot plot where *both* the size and color (more specifically, shade of grey) change with the associated value. I've found examples online for ggplot2 where you can scale the size of the