Ok, I'll repost my question here: Dear List,
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 colorpanel() command has an addition horizontal and vertical line that I would like to get rid off. Any suggestions? #my code below 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) Kind regards, Peter On Sun, Jan 13, 2013 at 5:10 PM, Uwe Ligges <lig...@statistik.tu-dortmund.de > wrote: > > > On 13.01.2013 18:06, Peter Davidsen wrote: > >> Sorry, I should have added >> >> library(gplots) >> >> in the beginning of my code >> >> On Sun, Jan 13, 2013 at 5:04 PM, Uwe Ligges >> <lig...@statistik.tu-dortmund.**de <lig...@statistik.tu-dortmund.de>> >> wrote: >> >>> >>>> mycol <- colorpanel(n=3,"green","grey",**"red") >>>> >>> >> > > Ah, so these are questions re. the gplots package. > > And now the rest of the code is missing. Please always cite the original > message. I deleted it already after my answer. Maybe you should provide it > for the others who are familar with that package and can try to help you. > > Best, > Uwe Ligges > > >> >> - - - >> Peter K Davidsen | MSc, PhD stud. | Centre for Systems Biology | Univ. >> of Liverpool | Crown Street | L69 7ZB, UK | cell: +44 (0)7428 950501 >> >> [[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.