Re: [R] Compact presentation of multiple figures

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Sun 15 Oct 2006 - 21:12:25 GMT


This will get you started

x <- rnorm(20)
y <- rnorm(20)
par(pty = 's', xaxt = 'n', yaxt = 'n', mfrow = c(2, 3),

               mgp= c(1, 0, 0), mar = c(1.1, 2.1, 1.1, 0.1))

plot(y ~ x, main=1, xlab="", ylab="y1")
plot(y ~ x, main=2, xlab="", ylab="")
plot(y ~ x, main=3, xlab="", ylab="")
plot(y ~ x, main=4, xlab="", ylab="y4")
plot(y ~ x, main=5, xlab="", ylab="", xaxt="s")
plot(y ~ x, main=6, xlab="", ylab="")

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon Oct 16 07:16:31 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 15 Oct 2006 - 22:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.