[BioC] Fine tuning heatmap.2 graphics

Marc Saric marc.saric at gmx.de
Thu Mar 9 16:18:30 CET 2006


Wittner, Ben, Ph.D. wrote:

> I have used the following code for setting margins for heatmap() (not
> heatmap2()):
> 
> margin.factor <- 12
> marg <- max(5, min(20, ceiling(margin.factor*max.nchar/ncol(expr3))))
> margins <- c(marg, marg)

Thanks, will try.


> where max.nchar is the max length of column label and expr3 is the
> matrix being displayed. It worked okay but not completely satisfactorily.

> BTW, what is the advantage of heatmap2() over heatmap()?

Mostly that you get more options to tweak the graphics, like a color-key
and some more color-schemas out of the box.


> Does anyone know of a heatmap()-like function that can add multiple rows of
> column colors (each row corresponding, say, to various phenotypic parameters)
> such as can be done with dChip?

Not that I would know.


-- 
Bye,

Marc Saric



More information about the Bioconductor mailing list