Re: R-beta: Encapsulated Postscript output with R-0.49

Thomas Lumley (
Sun, 8 Jun 1997 12:16:54 -0700 (PDT)

Date: Sun, 8 Jun 1997 12:16:54 -0700 (PDT)
From: Thomas Lumley <>
To: Steve Shiboski <>
Subject: Re: R-beta: Encapsulated Postscript output with R-0.49
In-Reply-To: <9706072333.AA01846@biostat.ucsfbiostat>

On Sat, 7 Jun 1997, Steve Shiboski wrote:

> I've noticed that the postscript files produced by R-0.49
> come up inverted in my postscript previewer. Also, they
> do not behave like encapsulated postscript files so they
> can't be imported into LaTeX documents. If I remove lines
> with page-oriented commands like "%%Page", "%%Orientation",
> "\bp" and "\ep", the resulting files seem to behave like 
> legitimate eps files. I've been using the Perl script below
> to automate the process:

I haven't had any of these problems.  My postscript files come up the
right way around in ghostview and import beautifully into LaTeX with
\epsfig.   They are also in colour (which I have only just worked out how
to do in S-PLUS).

Most, if not all, of my postscript files were produced by save.plot()
rather than by postscript(). This may explain the difference, but they do
include the %%Orientation, %%Page, /ep, and so on.   Also, in earlier
versions of R I used postscript() with no problems.

What LaTeX commands and dvi converter are you using? I have used both the
NTeX (on Linux) and teTeX versions of LaTeX2e with the dvips converter,
and used the epsfig package.

Thomas Lumley
Biostatistics		: "Never attribute to malice what  :
Uni of Washington	:  can be adequately explained by  :
Box 357232		:  incompetence" - Hanlon's Razor  :
Seattle WA 98195-7232	:				   :

r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: