On 23/01/2008 4:36 PM, Ajar wrote: > Hi, > > I have a question regarding the image function. Is there a way to > specify a separate color set for each column in the matrix?
No, but the crucial part of source of image() the R code in image.default, and you could edit that. zi is a local variable that holds indices into the colour vector; if you modified it just before the call to .Internal, you could do pretty much anything you liked. Duncan Murdoch ______________________________________________ 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.