[R] Problems in plot

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue May 4 18:28:50 CEST 2004


Yao, Minghua wrote:

> My code is over 700 lines. That is why I didn't send it. I am sorry I did not tell you this.
>  
> See this code,
>  
> for(i in 1:20){ 
>  windows() 
>  par(cex = 0.75) 
>  plot(1:10) 
> } 
> 
> 
> if the RGui window is minimized immediately (by clicking the "minimize" button on the upper right corner) after the code is pasted and run.

After RGui in MDI mode is minimized??!!
Of course, then you cannot plot anything, since the remaining errea to 
plot anything in is 0x0 (and the error message indicates that the 
margins are too large, because no space is left to do any sensible 
plotting)!

That's expected!

Uwe Ligges



> 
>>for(i in 1:20){ 
> 
> +  windows() 
> +  par(cex = 0.75) 
> +  plot(1:10) 
> + } 
> Error in plot.new() : Figure margins too large
> 
>>
> 
> I am using MDI mode. My operating system is Windows XP.
>  
> Thanks.
>  
> Minghua
> 
> ________________________________
> 
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Tue 5/4/2004 10:49 AM
> To: Yao, Minghua
> Cc: R Help
> Subject: RE: [R] Problems in plot
> 
> 
> 
> You have been asked for a reproducible set of conditions -- this is the
> first time `minimized' has been mentioned.  If you can find a completely
> reproducible set of actions please file a bug report (after reading the
> FAQ section carefully).
> 
> We cannot help you otherwise, and don't want to spend time guessing what
> you might have forgotten to tell us.  (I see you have not told us if you
> use MDI or SDI mode, for example.)
> 
> 
> On Tue, 4 May 2004, Yao, Minghua wrote:
> 
> 
>>It seems to me that the problem happens to the graphic window that is
>>generated immediately after the R window is minimized.
>>
>>Minghua
>>
>>________________________________
>>
>>From: r-help-bounces at stat.math.ethz.ch on behalf of Yao, Minghua
>>Sent: Fri 4/30/2004 4:12 PM
>>To: Prof Brian Ripley
>>Cc: R Help
>>Subject: RE: [R] Problems in plot
>>
>>
>>
>>The problem is still there if windows() is used.
>>
>>Minghua
>>
>>________________________________
>>
>>From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
>>Sent: Thu 4/29/2004 9:31 AM
>>To: Yao, Minghua
>>Cc: R Help
>>Subject: Re: [R] Problems in plot
>>
>>
>>
>>The primary graphics device under Windows is called *windows* not *x11*.
>>
>>Something in your Windows setup is sometimes failing to choose a
>>reasonable window size.  I have never seen that, and suspect it is nothing
>>to do with it, but please use windows() and see if the problem vanishes.
>>
>>On Thu, 29 Apr 2004, Yao, Minghua wrote:
>>
>>
>>>Hello,
>>>
>>>
>>>
>>>I have R1.9.0 under Windows XP. My program plots several plots using
>>>
>>>x11()
>>>par(cex = 0.75)
>>>......
>>>x11()
>>>par(cex = 0.75)
>>>......
>>>x11()
>>>par(cex = 0.75)
>>>......
>>>x11()
>>>par(cex = 0.75)
>>>......
>>>
>>>Sometimes, one of them generates  a small frame only with title area "R graphics: Device X (ACTIVE)". The message in the console window is
>>>
>>>Error in plot.new() : Figure margins too large
>>>
>>>This program ran well under R1.6.X under Windows NT.
>>>
>>>It seems to me that it is not a specific x11() that generates that small graphics frame.
>>>
>>>Thank you for you help in advance.
>>>
>>>Minghua
> 
> 
> 
> --
> 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
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list