[BioC] Plotting multiple graphs with a heatmap

Kevin R. Coombes kevin.r.coombes at gmail.com
Wed Mar 2 13:03:43 CET 2011

It cannot be done, since heatmap requires the "layout" function to get 
all the pieces into place.  Documentaion for layout points out that it 
does not play well with mfrow or mfcol or other ways to subdivide the 
plot area.

On 3/1/2011 8:59 PM, Steve Lianoglou wrote:
> Hi,
> On Tue, Mar 1, 2011 at 6:14 PM, Fong Chun Chan
> <fongchun at interchange.ubc.ca>  wrote:
>> Hi
>> Has anyone been successful in plotting multiple plots on the same graph with
>> a heatmap?  I've been using the par() function to set the mfrow, or mfcol
>> parameters and it works when I try to plot boxplots or any other plot.  But
>> I can't seem to get a heatmap to appear on the same graph.  If I plot a
>> heatmap, it will either just take up the entire plot or it won't appear at
>> all.  I haven't been able to find any other messages regarding this.  Any
>> help would be greatly appreciated.
> To save you some time: I'm pretty sure that you can't actually do that
> with the heatmap (or heatmap.2) function. It will hog the entire
> graphics device for itself.
> Maybe you can use some other tool (like Illustrator, for example) to
> stitch heatmaps together after you save them?
> There are other ways to plot heatmaps, like using "levelplot" from
> lattice, as well geom_tile with ggplot -- I wonder if you can rig
> those plotting tools up to get the graph you want? (Not sure).
> -steve

More information about the Bioconductor mailing list