[R] insert eps into microsft word
bamelbourne at ucdavis.edu
Wed Sep 10 21:36:21 CEST 2003
Your problem may also be that you can't get the figure to print from Word?
To get Word to print anything other than a blank box for the eps, you will
need to install and use a postscript printer driver for your printer.
Brett Melbourne, Postdoctoral Fellow
Biological Invasions IGERT www.cpb.ucdavis.edu/bioinv
Center for Population Biology, Storer Hall
University of California Davis CA 95616
----- Original Message -----
From: "Gavin Simpson" <gavin.simpson at ucl.ac.uk>
To: "Karim Elsawy" <elsawy at ysbl.york.ac.uk>
Cc: <r-help at stat.math.ethz.ch>
Sent: Wednesday, September 10, 2003 12:26 PM
Subject: Re: [R] insert eps into microsft word
> Depending on your version of Word that simply is *not* true!
> I can't test this here (I now have Word XP/2002) but my colleagues have
> Word 97 on their college-supplied service (yes, really!) and despite not
> being able to see a preview, they can quite happily import eps files I
> have produced during the course of my work. Admitedly a blank box in
> word is not the most user-friendly thing to work with, but this old
> version of Word will happily deal with the postscript produced.
> Having used Word 2000 and XP during the course of writing a PhD thesis
> that used R-generated plots extensively, I know first hand how easy it
> is to deal with eps files from R in Word.
> My setup involves using Ghostscript/GSView on Windows XP to view the eps
> plots I produce in R and then import them into Word XP (the eps filter
> now seems to add a preview for you), but if you have an earlier word
> version, GSView can easily add a preview for you.
> Also, onefile = TRUE does *not* produce eps files.
> I quote from ?postscript :
> onefile: logical: if true (the default) allow multiple figures in one
> file. If false, generate a file name containing the page
> number and use an EPSF header and no `DocumentMedia' comment.
> It is a bit confusing, but onefile = TRUE is for producing multi-page
> postscript documents, i.e. put all the plots to follow into a single
> postscript doc with (possibly) more than a single page.
> I know a number of people have suggested using a windows metafile.
> Whilst this might offer a solution to your problem, unless you are using
> a very-out-of-date version of Word I cannot see the advantages of using
> metafiles over postscript.
> Karim Elsawy wrote:
> > it seems that word can not read encapsupalted postscripts generated by R
> > I used this command
> > postscript("output.eps",horizontal=F,onefile=TRUE)
> > since onefile=TRUE produces an encapsualted postscript
> > actually what I'm trying to do is to insert the postsript file into a
> > word document
> > since other formats like jpeg and bmp do not reproduce the same quality
> > like postscript
> > formats
> > any suggestions are very much appreciated
> > Karim
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> Gavin Simpson [T] +44 (0)20 7679 5522
> ENSIS Research Fellow [F] +44 (0)20 7679 7565
> ENSIS Ltd. & ECRC [E] gavin.simpson at ucl.ac.uk
> UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/
> 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/
> London. WC1H 0AP.
> R-help at stat.math.ethz.ch mailing list
More information about the R-help