[if you get this twice: it seems to have not made it through, yesterday]
>>>>> "Earl" == Earl F Glynn <[EMAIL PROTECTED]> >>>>> on Mon, 3 Dec 2007 13:26:11 -0600 writes: Earl> "affy snp" <[EMAIL PROTECTED]> wrote in message Earl> news:[EMAIL PROTECTED] >> For example, it should go from very red---red---less >> red---dark----green---very green coinciding with the >> descending order of values, just like the very left panel >> shown in >> http://www.bme.unc.edu/research/Bioinformatics.FunctionalGenomics.html Earl> This looks like the MatLab palette that's in Earl> tim.colors: Earl> library(fields) # tim.colors: Matlab-like color palette Earl> N <- 100 Earl> par(lend="square") Earl> plot(rep(1,N), type="h", col=tim.colors(N), lwd=6, ylim=c(0,1)) Well, the R help page ?colorRamp in its 'examples' section has an example of this Matlab-lik color scheme, calling them 'jet.colors', easily constructed with the nice colorRampPalette() function [I've just posted about to R-help as well]. Please say example(colorRamp) in R and slowly watch the output, and I expect you will never ever want to use the horrible "Matlab-like" color palette again.. Regards, Martin Maechler, ETH Zurich Earl> efg Earl> Earl F. Glynn Earl> Scientific Programmer Earl> Stowers Institute for Medical Research ______________________________________________ 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.