[R] Heatmap.2 axes question

From: Joseph Retzer <jjrr_at_wi.rr.com>
Date: Fri 03 Feb 2006 - 05:23:31 EST


I'm suppressing the labeling of my rows and columns in heatmap.2 using the commands:  

    labRow = " ", labCol = " "  

But I'd like to annotate them again using the axis command:

     axis(1, at=seq(500, 1000, 500))
     mtext("Group 1", "Group 2")       
 

For some reason however it appears that the axis command is having no effect. My complete code is:  

 hv <- heatmap.2(hmrf, Rowv=1:nrow(hmrf), Colv=1:ncol(hmrf), symm=TRUE, margin=c(6, 6), trace="none", col=terrain.colors(256),

                   main = "Heatmap: Respondent Proximities", tracecol="red",
dendrogram="none", colsep=c(398, 811),
                   rowsep=c(398, 811), labRow = "  ", labCol = "  ") 
  axis(1, at=seq(500, 1000, 500))
  mtext("Group 1", "Group 2")       
 

Note: I'm preventing re-ordering so that observations within groups are adjacent to one another. The data is a proximity matrix produced by random forests.  

I suspect I'm making a simple error but not sure what it is. Any advice would be appreciated. I'm using R 2.2.1 on a Windows XP machine.  

Many thanks,
Joe Retzer  

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 03 05:31:12 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Feb 2006 - 15:12:35 EST