[R] heatmap.2 color range
evgeny55
evgeny55 at yahoo.com
Tue Jan 26 23:20:13 CET 2010
thanks,
I think I got the color ranges down, however, I just realized that the
colors don't match the data. When I execute:
grad <- ifelse(randMat > 5,yelPal,ifelse(randMat<1.5,redPal,bluPal))
the grad matrix contains the correct hex codes corresponding to the randMat
data matrix but when I run:
heatmap(randMat, Rowv=NA, Colv=NA, col = grad, scale="none",
margins=c(5,10))
The colors displayed don't match up. I'm not sure if it's re-ordering the
data somehow but I'm not getting any warning or errors and can't find any
similiar postings.
--
View this message in context: http://n4.nabble.com/heatmap-2-color-range-tp1293498p1311023.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list