search for: redpal

Displaying 1 result from an estimated 1 matches for "redpal".

Did you mean: redial
2010 Jan 26
2
heatmap.2 color range
Hi, I'm trying to create a heatmap with color ranges for different values in my matrix. For example: If x > 5 , use orange gradient if x < 1.5, use red gradient ..... Right now I have the following: orgPal<-brewer.pal(3,"Oranges") bluPal<-brewer.pal(3,"Blues") redPal<-brewer.pal(3,"Reds") grad <- ifelse(randMat > 5,orgPal,ifelse(randMat<1.5,redPal,bluPal)) hmap <- heatmap(randMat,Rowv=NULL, Colv=NULL,dendrogram="none",col = grad, scale="column",...) the problem is that all the colors become very close to white on o...