[BioC] labels on graph

Sean Davis sdavis2 at mail.nih.gov
Wed Sep 24 20:51:20 CEST 2008


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



More information about the Bioconductor mailing list