[R] layout question

Matthew Wiener mcw at ln.nimh.nih.gov
Mon Sep 18 14:55:51 CEST 2000


I ran into this before.  You need to define smaller boxes:

  4   1   1   5

  2   2   3   3

(sorry not to put in the lines to make everythin look nice).

To be more explicit, you're using

layout(rbind(c(4,1,1,5), c(2,2,3,3))),
but then making only 3 plots.

Hope this helps,

Matt



On Mon, 18 Sep 2000, Bill Simpson wrote:

> I wanted to produce a layout like this:
> 
>       |----------|
>       |          |
>       |    1     | 
>       |          |
> |-----------------------|
> |           |           |  
> |     2     |    3      |   
> |           |           |  
> |-----------------------|
> Three equal sized plots with the top one centred about the other two.
> 
> So far I am using
> nf<-layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE),respect=TRUE)
> which produces a layout like this:
> 
> |-----------------------|
> |                       |
> |          1            |
> |                       |
> |-----------------------|
> |           |           |
> |     2     |    3      |
> |           |           |
> |-----------------------|
> 
> The top plot is stretched horizontally.
> 
> Is there a way to get what I want with layout or by some other means?
> Thanks for any help.
> 
> Bill
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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