[R] graphics layout

Eik Vettorazzi E.Vettorazzi at uke.uni-hamburg.de
Tue Oct 12 14:43:16 CEST 2010


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