[R] postscript problems (landscape orientation)

Zeljko Vrba zvrba at ifi.uio.no
Thu May 21 12:23:05 CEST 2009

I use the following function to export some figures to .eps:

p.eps <- function(p, fname, title = NULL, width, height)
  postscript(file=fname, onefile=FALSE, paper="special",
             width=width, height=height, horizontal=FALSE)
  print(p + opts(title = title))

Whenever I have a page consisting of *only* figures exported in this way,
Acrobat Reader shows them in landscape.  If the figures are mixed with
text, the page retains its portrait orientation.

Any ideas on what's going wrong?

More information about the R-help mailing list