[R] Initial size of graphics window

Wolfgang Zocher WZocher at t-online.de
Sun Nov 16 23:18:02 CET 2003


Paul Murrell <p.murrell at auckland.ac.nz> writes:

> Remington, Richard wrote:
> > Wolfgang Zocher wrote:
> >> [...] Is there any
> >> chance to change the size of this window?

> > ?win.graph
> > Example, 4 x 4 inch window
> > win.graph(width = 4, height = 4)> 

> The first time you use a graphics command, R automatically opens a graphics
> device (what sort of device you get is controlled by options(device=?)).  This
> device will open with default size settings. If you want to control the size
> of the device, you need to explicitly open the device first and specify the
> size you want (as in Richard's win.graph example).  par("din") can only be
> used to query the current size of a device;  it cannot be used to set/modify
> the size of a device.

Thanks to both of you (Richard and Paul),

Wolfgang




More information about the R-help mailing list