[R] Landscape problems with ps2pdf [summary]

Matthew Nelson mnelson at esperion.com
Wed Dec 6 12:32:53 CET 2000


Since I sent my original question last week, this is one of two suggestions
that worked.  Using Adobe Acrobat, as suggested by Professor Ripley, was
very satisfactory, but required that I use multiple platforms to make the
conversion to PDF (from Linux to Windows).  

The solution by Peter Adorjan (included below), also worked very well, and
can be carried out on any platform using tools available in ghostscript
(ps2pdf) and psutils (pstops, which can be downloaded from
http://www.dcs.ed.ac.uk/home/ajcd/psutils/ in source form, or from the usual
sites for Linux binaries).

Thanks for the responses.

Matt Nelson

> From: Peter Adorjan [mailto:adorjan at epigenomics.de]
> Sent: Wednesday, December 06, 2000 6:09 AM
> 
> hi, 
> i have had the same problem, and following trick seems to 
> work generally
> (independent who produced the ps file).
> 
> pstops "0R(0,21cm)" myfile.prn > myfile.ps
> ps2pdf -g8420x5950 myfile.ps


Original Message:

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.

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

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