[R] how can I get a layout like in pairs()?

Lukas Kohl lukas.kohl at mun.ca
Tue Sep 11 20:40:31 CEST 2012


dear R gurus,

I repeatedly run into this problem, maybe there's an easy way to solve it.

I want a composite plot with multiple graphs that share the same axis,
similar way as done by the pairs() (eg. like this here
http://www.r-project.org/screenshots/iris-pairs.jpg). all plot panels
shall have the same size, but there need to be extra space at the
outside of the whole graphic to label the axis. space between the
panels should be minimal.

I tried to set par(mar) to low levels, and add additional space with
par(oma) for axis&tick labels, however, the individual plots can't
draw into the oma space - is there an alternative way?

thanks a lot,
 lukas

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php



More information about the R-help mailing list