[R] landscape plots

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Feb 24 14:28:23 CET 2000

On Thu, 24 Feb 2000, Chuck Cleland wrote:

> Is there a set of R expressions that has the same effect as the
> following set of S-Plus 2000 expressions:
> graphsheet(format="printer", orientation="landscape")
> par(mfrow=c(2,2))
> plot(x1, y1)
> plot(x2, y2)
> plot(x3, y3)
> plot(x4, y4)
> dev.off()    # one page of landscape plots sent to printer
> I am having trouble with formulating the equivalent of the first line of
> the above in R.  I want a page of plots that is landscape and makes
> optimal use of a 8.5 by 11 inch piece of paper.  I am using R 0.99.0 on
> Windows 98 SE and S-Plus 2000 on the same machine.   

There is no direct way to do that, that I know of. You ought to be able to
use win.metafile with width=11, height=8.5 and print the result in
landscape, or win.print(width=11, height=8.5) and select landscape from the
printer selection box (if you get one: I did when I tried).

Exactly what happens is rather OS and printer-driver specific: I was using
a networked PostScript printer (Adobe driver) on NT4.

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

More information about the R-help mailing list