[R] Compact presentation of multiple figures

Richard M. Heiberger rmh at temple.edu
Sun Oct 15 23:12:25 CEST 2006


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="")



More information about the R-help mailing list