Skip to content
Prev 181051 / 398502 Next

postscript problems (landscape orientation)

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))
  dev.off()
}

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?