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 taste maxDotSize <- 5 maxGreyLevel <- 0.8 plot(x, y, pch=16, xlim=c(0,10), ylim=c(0,10), cex=maxDotSize * value / valueMax, col=grey(maxGreyLevel * value / valueMax)) } On 12 August 2010 13:14, 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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.