Dear R users,
I am trying to add a ColSideColor- bar to a heatmap created with heatmap.2.
I had to adjust the width of the heatmap, for which I used "asp = 0.8".
Now the ColSideColor- Bar does not fit to the width of the heatmap anymore.
Does anyone have an idea, how I can adjust the width of the bar?
Here is a simplified example:
library(gplots)
m <- matrix(1:300,30,10)
heatmap.2 ( m, asp =0.8, dendrogram = "none", key = FALSE, density.info =
"none", trace = "none",
ColSideColors =
c("yellow","orange","red","pink","purple","blue","lightblue","lightgreen","green","black"))
Thanks,
Anna
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.