R-beta: edit figs with xfig?

Matthew R. Nelson mrn at superh.hg.med.umich.edu
Thu Nov 20 23:18:44 CET 1997


On Thu, 20 Nov 1997, Bill Simpson wrote:

> Question for R users under unix:
> Do you ever edit figs created by R using xfig or some other program?  I
> tried to edit a figure with xfig (a program which I find quite horrible by
> the way) and it said it couldn't read it in.  I guess xfig has no
> capability of reading postscript files?
> 
> Can anyone tell me how to do it, or perhaps suggest another freeware
> structured drawing program for use in touching up postscript figs output
> by R?

My experience with xfig and R/Splus has been very good.  I do not know of 
any other freely available drawing programs that handle postscript/eps 
files as well as xfig, and export drawings in such a usefull variety of 
formats.

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

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