[BioC] multiple image plots

Vincent Carey 525-2265 stvjc at channing.harvard.edu
Thu Oct 2 12:48:37 MEST 2003


On Wed, 1 Oct 2003, Naomi Altman wrote:

> We would like to modify maImage to put multiple plots on a page.  The call
> to "maImage.func" seems to start a new page. How can we overcome this?

There is an interdependence between the page layout
activities and the value of the bar option on maImage.
I find that if you have bar=FALSE, you can use, e.g.,
par(mfrow=c(2,2))
maImage(swirl[,3], x="maGb", bar=FALSE)
maImage(swirl[,1], x="maPrintTip", bar=FALSE)
...

to get a 2x2 layout of various sorts of displays.
That's not to say this is the only way to accomplish
this, but based on a quick look at the function,
this is one possible way to proceed.

if you really want the bar key in there, you will have
to look more closely at the "layout" calls in the
various functions.  i believe it will be hard to have
multiple images with bar keys on a single plot owing
to margin restrictions.  this aspect of R needs further
work.  the design of the maImage functions could change
a bit to better respect the user's global page layout
(if there is one)... but this may make the code considerably
more complex.



More information about the Bioconductor mailing list