Dear list,

I have a question on moving color keys when side color bars are added to a 
heatmap.
The R code below produces the color key in the upper left corner. Notice I have 
added side bars to the heatmap, but how could I move the color key below the 
image? 

------
library(gplots) 
data(mtcars) 
x <- as.matrix(mtcars) 
rc <- rainbow(nrow(x), start=0, end=.3) 
cc <- rainbow(ncol(x), start=0, end=.3) res=heatmap.2(x, RowSideColors=rc, 
ColSideColors=cc)
 
Thank you very much,
 
Pingping Qu
-----
Cancer Research And Biostatistics (CRAB)
Seattle, WA 98101
 -------


      
        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to