[R] graphics layout

Murali.Menon at avivainvestors.com Murali.Menon at avivainvestors.com
Tue Oct 12 14:51:19 CEST 2010


Hiya,

Thanks for this. It's the height parameters that baffle me. Why are they 1, 1, 1/3, 1/3, 1/3?
Which subscreens do these heights correspond to?

I did it like this: 

nf <- layout(cbind(c(1,1,1,3,3,3,5,5,5),c(2,2,2,4,4,4,6,7,8)))

mainly because I'm not clear about how the heights work.

Thanks,
Murali

-----Original Message-----
From: Eik Vettorazzi [mailto:E.Vettorazzi at uke.uni-hamburg.de] 
Sent: 12 October 2010 13:43
To: Menon Murali
Cc: r-help at r-project.org
Subject: Re: [R] graphics layout

Hi Murali
try

nf <- layout(matrix(c(1:5,6,5,7,5,8), ncol=2, byrow=TRUE),
heights=c(1,1,rep(1/3,3)),respect=TRUE)
layout.show(nf)

hth.

Am 12.10.2010 14:19, schrieb Murali.Menon at avivainvestors.com:
> Folks,
> 
> I'm battling the layout() functionality in graphics, and getting a bit mixed up. I'd like to create subscreens like so:
> 
>  _________ _________
> |         |         |
> |    1    |    2    |
> |_________|________ |
> |         |         |
> |    3    |    4    |
> |_________|_________|
> |         |____6____|
> |    5    |____7____|
> |_________|____8____|
> 
> 
> Note that subscreens 1:5 are the same size, and 6,7,8 are the same width as, say, 1, but of one-third the height.
> 
> How to achieve this? 
> 
> Thanks,
> 
> Murali
> 
> ______________________________________________
> R-help at r-project.org 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.

-- 
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf

Martinistr. 52
20246 Hamburg

T ++49/40/7410-58243
F ++49/40/7410-57790



More information about the R-help mailing list