okay, I found something. Not very elegant, but it does the job: ## generate data U <- matrix(runif(4000), ncol=4)
## define panel function for colorizing the panels cols <- c("blue", "black", "black", "blue", "black", "black", "black", "black", "green", "black", "black", "green") count <- 0 mypanel <- function(x, y, ...){ count <<- count + 1 print(count) points(x, y, cex=0.5, col=cols[count]) } ## scatter plot matrix pairs(U, panel=mypanel) ______________________________________________ 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.