labels on graph
1
0
Entering edit mode
Tim Smith ★ 1.1k
@tim-smith-1532
Last seen 10.2 years ago
Hi, I wanted to put labels on the third side of the graph. For example: ----------------------------------------------------------- matr <- matrix(-1:1,8,10) rownames(matr) <- LETTERS[1:8] colnames(matr) <- 1:ncol(matr) labels2 <- LETTERS[1:ncol(matr)] heatmap.2(matr, dendrogram = 'none',col=c('green','black','red'), labRow = NA, cexCol = 0.6,cexRow=0.8, margins = c(9,5), key = F,trace = 'none' ) ------------------------------------------------------------ - What I'd like to do is to put labels2 on the opposite side to the labCol (default is used above). How should I go about doing this? many thanks! [[alternative HTML version deleted]]
GO graph GO graph • 749 views
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
On Wed, Sep 24, 2008 at 2:09 PM, Tim Smith <tim_smith_666 at="" yahoo.com=""> wrote: > Hi, > > I wanted to put labels on the third side of the graph. For example: > > ----------------------------------------------------------- > matr <- matrix(-1:1,8,10) > rownames(matr) <- LETTERS[1:8] > colnames(matr) <- 1:ncol(matr) > labels2 <- LETTERS[1:ncol(matr)] > > > heatmap.2(matr, > dendrogram = 'none',col=c('green','black','red'), > labRow = NA, > cexCol = 0.6,cexRow=0.8, > margins = c(9,5), key = F,trace = 'none' > ) > > ------------------------------------------------------------ > > - What I'd like to do is to put labels2 on the opposite side to the labCol (default is used above). How should I go about doing this? Unfortunately, I don't think any of the standard heatmap functions will do this for you (although I would like to hear otherwise). You'll probably need to change the code for one of them in order to accomplish this. Sean
ADD COMMENT

Login before adding your answer.

Traffic: 537 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6