Skip to content
Prev 326591 / 398502 Next

Same plot size with mfrow()

On Jul 9, 2013, at 3:23 PM, Charlie Brown wrote:

            
Those omi values aRE TOO LARGE.
png("example.png", height=1000, width=1500)

par(mfrow=c(2, 2), cex=2, cex.lab=1.5, cex.axis=1.5, cex.main=2, mgp=c(3,
1, 0), omi=c(2,1,1, 1), pin=c(5,4) )  # attempting to force equal sized plot dimensions
plot(c(1:100), c(1:100), xaxt="n", ylab="Y-label 1")
plot(c(1:100), c(1:100), xaxt="n", yaxt="n", ylab="")
plot(c(1:100), c(1:100), xlab="X-label", ylab="Y-label 2")
plot(c(1:100), c(1:100), yaxt="n", xlab="X-label 2", ylab="")

dev.off()


Closer, but if you wnat control over the axis labeling to avoid the irregular gaps, you need to use the `axis` function.
David Winsemius
Alameda, CA, USA