[R] Three graphs

Martyn Plummer plummer at iarc.fr
Mon Mar 31 14:39:15 CEST 2003


On Mon, 2003-03-31 at 13:25, Michael Mader wrote:
> Kenneth Cabrera wrote:
> 
> > How can I obtain 3 graphics in a page but, one on the top and centered, and
> > the other two in the bottom ?
> ?par
> but probably R-intro is what you need

In this case, I think layout() is required:

layout(mat = matrix(c(1,1,2,3), 2, 2, byrow=TRUE))
layout.show(3)

Or, if you want all three graphics to have the same width:

layout(mat = matrix(c(0,1,1,0,2,2,3,3), nrow=2, ncol=4, byrow=TRUE))
layout.show(3)

Martyn



More information about the R-help mailing list