[R] Graphic size with X11 device

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 5 10:54:30 CEST 2004


Are you using par(mfrow)?  If so, that changes the base cex for layouts
with 2 or more rows and columns.

Otherwise, the text size should be the same, but in calculating the window 
size you have to compute the device not plot region, that is included the 
margins (and outer margins) which are of fixed size.

I would use par(mfrow=c(2,2)) on all windows, and accept that there will 
be white space on the last one.

On Wed, 5 May 2004, Laetitia Marisa wrote:

> I have done a script that make multiple graphics : one graphic per 
> columns of my data matrix and one x11 window every 4 graphcis. For 
> example, if my matrix has 6 columns, there will appears one x11 window 
> with 4 graphics and a second one with the last 2 graphics.
> I wanted that all graphics have the same size so when I open x11 I 
> specify width and height proportional to the number of lines expected by 
> window. But in the second windows it is always different in size of the 
> graphics, in size of the points and in size of the text.
> What do i miss?


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