[R] layout() and lcm() problem

Bill Simpson wsi at gcal.ac.uk
Fri Apr 20 10:14:28 CEST 2001

I am doing:

layout(mat=matrix(c(1,2,3), 3, 1, byrow=TRUE),
widths = lcm(5),
heights= lcm(rep(5, 3)))

This is one column of 3 plots.
If I try to make each subplot bigger, 
widths = lcm(6),
heights= lcm(rep(6, 3)))

I get:
Error in plot.new() : Figure region too large

I don't understand why this is the case: an A4 page is 29.5 cm long by 21
cm wide. 3 x 6 = 18. I should easily be able to get subplots that are 8 cm
square (this is what I want to do). What is the problem and how to fix?

It seems that plot.new thinks the figure region is only 6" x 6" (15 x 15
cm). I tried telling it the real size with par(pin=c(8.25,11.5)) and with
par(fin=c(8.25, 11.5)) but it didn't work.

Thanks very much for any help.

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