[BioC] Plotting multiple graphs with a heatmap

Steve Lianoglou mailinglist.honeypot at gmail.com
Wed Mar 2 03:59:21 CET 2011


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

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list