R-beta: edit figs with xfig?

Ted Harding Ted.Harding at nessie.mcc.ac.uk
Fri Nov 21 00:44:28 CET 1997

On 20-Nov-97 Matthew R. Nelson wrote:
> On Thu, 20 Nov 1997, Bill Simpson wrote:
> If you want to include a postscript file into an xfig drawing, first open
> a blank canvas to work on, then select the button on the left titled 
> `picture object', which will bring a file-selector dialog from which you 
> can select the ps/eps file you wish to import (after indicating the size 
> for the imported file by use of the mouse).  It is usually that easy.
> I recommend converting the ps image to an eps (encapsulated post script) 
> with a tool such as ps2epsi (included with ghostscript, I believe), which
> removes much of the white space around the plot that is usually left when
> the plot is written to a ps file.
> Good luck.  (The man page, though a little disorganized, is a good
> resource)
> Matt Nelson

The abovei, of course, is *one* of the ways to convert PostScript into a
bitmap prior to editing the bitmap with Xfig (Xfig calls on ghostscript for
the conversion, and for this ghostscript must be compiled to include the
"gif8" (for mono) and/or "pbmraw" (for colour) drivers; otherwise it won't
work at all; mine doesn't with B+W graphs, presumably because it doesn't
have gif8, even though it does have pbmraw.) Then, of course, if it works
you could make changes using Xfig and re-export as PS (using Xfig to
convert the bitmap to PS -- which, since it's PS representing bitmap, leads
to big files).

I still think that a more direct approach (e.g via "pic") would be better.

Best wishes to all,

E-Mail: Ted Harding <Ted.Harding at nessie.mcc.ac.uk>
Date: 20-Nov-97                                       Time: 23:44:28
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