[R] Plotting multiple figures

Bill Simpson wsi at gcal.ac.uk
Fri Apr 27 12:43:41 CEST 2001


On Fri, 27 Apr 2001, Sven Garbade wrote:

> Morning,
> 
> I've plotted multiple figures on one page, setup the page with n2mfrow.
> This works fine, but I can't figure out how to change to a specific plot
> (e.g. first row, second column) to add some details.
I think the preferred way to make multiplot layouts is with layout().
For example, to do 2 columns of 3 plots (6 in all), do
layout(mat=matrix(1:6, 3, 2, byrow=FALSE))
plot(x1,y1)
plot(x2,y2)
plot(x3,y3)
plot(x4,y4)
plot(x5,y5)
plot(x6,y6)
Column 1 has plots 1-3, column 2 has plots 4-6

Bill Simpson

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list