Dear R Users: Here is a nice simple question: On Version 1.0.0, where is the file that has the paper size for plots? UNIX Dec Alpha please? (Really dumb. I know.) Sincerely, Erin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Erin Hodgess <hodgess at uhddx01.dt.uh.edu> writes:> Here is a nice simple question: On Version 1.0.0, where is the file > that has the paper size for plots? > > UNIX Dec Alpha please?Paper size is set in the shell script called R. In my case that is /usr/bin/R. Your location for the R script may be different, perhaps /usr/local/bin/R. The script reads, in part, # Default printer paper size # Choose one of the following: # R_PAPERSIZE="a4" # R_PAPERSIZE="letter" # R_PAPERSIZE="none" : ${R_PAPERSIZE=letter} export R_PAPERSIZE You can override that selection by setting the environment variable R_PAPERSIZE to "a4" or to "letter" before running R. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 10 May 2000, Douglas Bates wrote:> Erin Hodgess <hodgess at uhddx01.dt.uh.edu> writes: > > > Here is a nice simple question: On Version 1.0.0, where is the file > > that has the paper size for plots? > > > > UNIX Dec Alpha please? > > Paper size is set in the shell script called R. In my case that is > /usr/bin/R. Your location for the R script may be different, perhaps > /usr/local/bin/R. The script reads, in part,[R RHOME will tell you where: replace `lib'' by `bin''.]> # Default printer paper size > # Choose one of the following: > # R_PAPERSIZE="a4" > # R_PAPERSIZE="letter" > # R_PAPERSIZE="none" > : ${R_PAPERSIZE=letter} > export R_PAPERSIZE > > You can override that selection by setting the environment variable > R_PAPERSIZE to "a4" or to "letter" before running R.Just to add a couple of points: 1) That gives the default paper size for plots done by postscript() and not necessarily by other drivers. You can override it by specifying `paper'' on a call to postscript(). 2) Inside R, options("papersize") will tell you the current setting, and as from 1.1.0 it will also allow you to set the default paper size. -- 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 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
dear All, I just started using R. I have been trying to print multiple figures on one page but I have not been able to get R to set the paper size so that I can print on full A4 size, it seems to only print in the middle of the paper and just make the figure smaller when I increase the number of figures to plot using mfrow. I have tried mai and omi command but nothing changes, so I suspect I need to try to set paper size in order to be able to print on all the available area of A4 paper. Please help. Thanks. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000608/d8bda7b8/attachment.html
Hi, The ~/.Renviron method should also work in 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 (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". # R_PAPERSIZE=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? 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 the > 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 > > Faheem. > > On Thu, 8 Jun 2000, Kong, Chuang Fong wrote: > > > dear All,[snipped] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 informationThose 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". > # R_PAPERSIZE=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 workthe> > 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 ~/.RenvironSee ?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 -- Readhttp://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html> 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
On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:> Dear all, > Thanks for the response. I did try to change width, height in win.graph but^^^^^ I wrote win.print> 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.Please do follow the help you are given. If I do> win.print(width=8, height=10.5) > par(mfrow=c(3,2)) > for(i in 1:6) plot(1:10) > dev.off()I get a layout of plots filling a US letter page. You will not get this if you use the Print menu from a windows() device: that prints to the default size. It would have been much easier to help if you had said exactly how you were trying to print on what platform. -- 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 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sorry for not making myself clear. I am actually using the print manual to print instead of win.print. When I tried to print with win.print, I was not able to send the print job to the printer. Why? 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 4:25 PM To: Kong, Chuang Fong Cc: r-help at stat.math.ethz.ch Subject: RE: [R] paper size On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:> Dear all, > Thanks for the response. I did try to change width, height in win.graphbut ^^^^^ I wrote win.print> 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 Ido> not know how to change) or ???? Basically, I am not able to print thewhole> printable area of a4. When I make more figures in a plot, it just shrinkall> of the fingers smaller to fit into the centre area. Please help.Please do follow the help you are given. If I do> win.print(width=8, height=10.5) > par(mfrow=c(3,2)) > for(i in 1:6) plot(1:10) > dev.off()I get a layout of plots filling a US letter page. You will not get this if you use the Print menu from a windows() device: that prints to the default size. It would have been much easier to help if you had said exactly how you were trying to print on what platform. -- 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/a02afcc1/attachment.html
> Sorry for not making myself clear. I am actually using the print > manual to print instead of win.print. When I tried to print with > win.print, I was not able to send the print job to the printer. Why?>From Prof Ripley:win.print(width=8, height=10.5) ## Here you will be asked to print to which printer par(mfrow=c(3,2)) for(i in 1:6) plot(1:10) dev.off() ## Here the plot will be send to the printer You _cannot_ say e.g. plot(1:10) win.print(.....) ## This opens the device only. win.print(.) is a "device", not a function to print the opened device. Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._