[R] about col in heatmap.2

Earl F. Glynn efg at stowers-institute.org
Mon Dec 3 20:26:11 CET 2007


"affy snp" <affysnp at gmail.com> wrote in message 
news:5032046e0711301734o2bdd53a5p3da1276bc68b28ba at mail.gmail.com...
> 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

This looks like the MatLab palette that's in tim.colors:

library(fields)  # tim.colors:  Matlab-like color palette

N <- 100
par(lend="square")
plot(rep(1,N), type="h", col=tim.colors(N), lwd=6, ylim=c(0,1))


efg

Earl F. Glynn
Scientific Programmer
Stowers Institute for Medical Research



More information about the R-help mailing list