[R] Landscape problems with ps2pdf

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Dec 1 09:22:46 CET 2000


On Thu, 30 Nov 2000, Matthew Nelson wrote:

> R Users,
> 
> I have created a multipage PostScript file using the postscript() function
> with horizontal = TRUE to produce my plots in landscape.  I intended to
> convert that entire file to PDF using ps2pdf to have the plots available for
> a presentation.  Unfortunately, the resulting PDF document is rotated -90
> degrees.

Um, I think the problem is that the PDF document is rotated (as it should
be), but the reader is not being told to display it rotated to landscape.
That's ps2pdf's failing, nor R's, as Adobe Distiller does this as you
intended with R plot files.

> I have found dozens of references to this kind of problem with ps2pdf
> online, but no effective workaround.  I would really appreciate any
> suggestions.

Use Distiller.  It still works streets better than ps2pdf, even though gs
is catching up.  That's always the answer on the pdftex list.

> I am using R Version 1.1.1 on RedHat Linux 6.2.  I have upgraded to
> ghostscript 6.01 (in an attempt to correct the problem). 

Ah, you will have to use a commercial OS to use Distiller, but then 
you work in a commercial organisation.

Another possibility is to embed the plot file into a tex file, use pdftex,
and tell it to produce landscape PDF, as it does know how to do it. (I
don't, as I would go and buy Acrobat 4.05 if I had to do this rather than
spend time on it.)

-- 
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