heatmap.2 (gplots package) - how to remove annoying lines in some cells?
I'm trying to generate a simple heatmap that has each row and column
separated by a black line. However, for some reason this only happens
for the first and last color. The middle color in my
command has an addition horizontal and vertical line that I would like
to get rid off when plotted using
heatmap.2(). Any suggestions as to why I see these lines?
library(gplots) my.matrix <- cbind(func.1 = c(1,2,2,1,1,3,1,2,3,1,1,2,2,3,1), func.2 = c(2,2,1,1,3,3,1,1,2,2,1,3,3,2,1)) mycol <- colorpanel(n=3,"green","grey","red") heatmap.2(my.matrix,Rowv=FALSE, Colv="Rowv", col=mycol, trace="both", tracecol="black", key=FALSE, symm=FALSE, vline=NULL, hline=NULL)
link to the plot I get: https://dl.dropbox.com/u/8900971/heatmap.png