[R] using split.screen?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 18 16:29:40 CEST 2006


On Tue, 18 Jul 2006, Bill Shipley wrote:

> Hello.  I am having trouble understanding the use of split.screen.  I want
> to divide the device surface first into 4 equal screens:
> split.screen(figs=c(2,2))
>  
> This works.
>  
> I next want to subdivide each of these 4 screens into 10 subscreens.  I do,
> for the first of these 4 screens:
>  
> screen(1,new=T)
> and then: split.screen(figs=c(10,2))
>  
> My understanding is that this should split screen 1 (i.e. top right) 

That is screen 2: 1 is top left.

> into 10
> screens within its area.  However, this does not work and I get the
> following error message: Error in plot.new() : figure margins too large

well, only when you try to plot on one of those screens.

> Does anyone know what I am doing wrong? 

I suspect not using a big enough device region to allow such small plot 
regions.  You are asking for 20 rows in your device region.

Oh, and sending HTML mail.

> Bill Shipley
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list