[R] paper size

Kong, Chuang Fong c.kong at pmci.unimelb.edu.au
Thu Jun 8 07:56:03 CEST 2000

Dear all,
Thanks for the response. I did try to change width, height in win.graph but
it does not work either. I now belief that it is not a paper size problem
but something else; either the restriction of the device windows (which I do
not know how to change) or ???? Basically, I am not able to print the whole
printable area of a4. When I make more figures in a plot, it just shrink all
of the fingers smaller to fit into the centre area. Please help.

Best regards,
Chuang Fong Kong, Ph D
Head, Microarrays
Peter MacCallum Cancer Institute - Research
St. Andrew's Place, East Melbourne
Victoria 3002, Australia
Tel: 61 3 9656-1796 or 1138
Fax: 61 3 9656-1411
e-mail: c.kong at pmci.unimelb.edu.au

-----Original Message-----
From: Prof Brian D Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Thursday, June 08, 2000 3:24 PM
To: Faheem Mitha
Cc: Kong, Chuang Fong; r-help at stat.math.ethz.ch
Subject: RE: [R] paper size

On Wed, 7 Jun 2000, Faheem Mitha wrote:

> The ~/.Renviron method should also work in Windows.

Yes, but setting R_PAPERSIZE=a4 on the command line is easier on Windows.

> In Unix you can either set the environmental variable in .Renviron or you
> can change the value in config.site. config.site is a shell script, so
> well may be Unix-specific. However, it (config.site) does yield the
> following useful information

Those are slightly different. If you set it in config.site, it is compiled
in as the default for the environment variable R_PAPERSIZE. People on
Windows are normally using pre-compiled versions.

> (from config.site)
> # The paper size for the local (PostScript) printer.
> # It must either be left blank or set to one of "a4" or "letter".
> # If left blank the system will use "a4".
> So try setting R_PAPERSIZE=a4 in .Renviron (create a .Renviron if you
> don't have one) and see what happens.
> Note by the way that command line arguments take precedence.
> By the way, I am surprised that your system does not default to A4. I
> thought that A4 defaults were pretty universal (as see the above shell
> script), but maybe not in NT? What default is your system currently using?

The default on all versions of R is "a4", including Windows (both the
Windows developers live in ISO-conformant countries).

I suspect the critical issue is that R_PAPERSIZE *only* applies to the
postscript device, where it supplies the default for the argument `paper'.
There are other printer devices on Windows, and it is likely that
win.print is being used.   That defaults to width=height=7(inches),
and those are arguments passed directly to it.

> I thought letter was the only other major option.
>                              Faheem.
> On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:
> > Thanks but I forgot to mention that I am using Windows NT, will it work
> > same way? Thanks.
> > -----Original Message-----
> > From: Faheem Mitha [mailto:faheem at email.unc.edu]
> > 
> > Try setting 
> > 
> > R_PAPERSIZE=a4 or R_PAPERSIZE=A4 in ~/.Renviron if you are using Unix.
> > 
> > I don't have any documentation for this but at least
> > R_PAPRSIZE=letter works for me in ~/.Renviron                

See ?postscript for the documentation, which tells you the other options.

> > 
> >                                  Faheem.
> > 
> > On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:
> > 
> > > dear All,
> [snipped]
> r-help mailing list -- Read
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000608/818540a4/attachment.html

More information about the R-help mailing list