Skip to content

heatmap.2 problem

5 messages · Uwe Ligges, Peter Davidsen

#
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

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 12.01.2013 23:40, Peter Davidsen wrote:
We get:
Error: could not find function "colorpanel"

Your code is not reproducible.

Best,
Uwe Ligges
#
Sorry, I should have added

library(gplots)

in the beginning of my code

On Sun, Jan 13, 2013 at 5:04 PM, Uwe Ligges
<ligges at statistik.tu-dortmund.de> wrote:
- - -
Peter K Davidsen | MSc, PhD stud. | Centre for Systems Biology | Univ.
of Liverpool | Crown Street | L69 7ZB, UK | cell: +44 (0)7428 950501
#
On 13.01.2013 18:06, Peter Davidsen wrote:
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