Re: [R] using split.screen?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 19 Jul 2006 - 00:29:40 EST

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

______________________________________________
R-help@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.
Received on Wed Jul 19 00:49:43 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 19 Jul 2006 - 02:16:43 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.