[R] eps Portrait to pdf now rotated since gs6.5 --- why?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Feb 5 09:25:54 CET 2002


I have now managed to trigger this.  The solution is to remove the
%%Orientation comment in the .eps.  *However*, according to the
PostScript Language Reference Manual this is to be used by viewers to set
the window orientation, so gs is not following the DSC guidelines.  It
seems only to use it for pdf and not say png conversion.

I'll remove that comment when producing eps from postscript(), as it also
affects bitmap().

[Marcus: mail to gmx.de is bouncing today.]


On Tue, 5 Feb 2002, Prof Brian D Ripley wrote:

> On Tue, 5 Feb 2002, Marcus Eger wrote:
>
> > this question has probably been answered but I haven't found
> > a solution in the archives:
> > The older ghostscript gs5.50 (debian,stable) deals well with R-plots:
> > epstopdf yields pdfs with the same orientation as the eps-file.
> > But, since gs6.5 (or earlier) the dimension of the plot is interpreted: if
> > x-width exceeds y-width even a Portrait-eps is rotated to Landscape.
> >
> > A possible solution is to adjust the Orientation-Flag at eps-generation in R.
>
> Are you following the advice in ?postscript and elsewhere?  That is to
> produce portrait plots, and I have never seen a problem converting with gs
> (currently 7.03).
>
> However, R has long had a pdf device, so if you want pdf, why not generate
> it in R?


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