[R] Initial size of graphics window
    Martin Maechler 
    maechler at stat.math.ethz.ch
       
    Mon Nov 17 12:45:11 CET 2003
    
    
  
>>>>> "Paul" == Paul Murrell <p.murrell at auckland.ac.nz>
>>>>>     on Mon, 17 Nov 2003 09:07:29 +1300 writes:
    Paul> Hi
    Paul> Remington, Richard wrote:
    >> Wolfgang Zocher wrote:
    >> 
    >>> Hi,
    >>> 
    >>> using par() a window is opened which is too large for my monitor. Is 
    >>> there any
    >>> chance to change the size of this window?
    >> 
    >> par(din=c(?,?))
    >> 
    >> Alternatively, if you don't need to use par() and are using Microsoft 
    >> Windows, see
    >> 
    >> ?win.graph
    >> 
    >> Example, 4 x 4 inch window
    >> 
    >> win.graph(width = 4, height = 4)
    Paul> The first time you use a graphics command, R
    Paul> automatically opens a graphics device (what sort of
    Paul> device you get is controlled by options(device=?)).
    Paul> This device will open with default size settings.
Hence, if you really want the default window opened 
{by par() or plot() or ...} to become smaller, 
you could do something like
  myWin <- function() win.graph(width = 4, height = 4)
  options(device = "myWin")
and even put this into an approriate  Rprofile file, see ?Startup.
Martin
    
    
More information about the R-help
mailing list