[R] graph from unix into word

S.McClatchie s.mcclatchie at niwa.cri.nz
Tue Apr 3 23:23:06 CEST 2001


On 31 Mar 01,, R-help Digest wrote (re: R-help Digest V2 #380): 

> Date: Fri, 30 Mar 2001 09:49:21 -0500 (EST)
> From: Greg Trafton <trafton at itd.nrl.navy.mil>
> Subject: [R] PICT output?
> 
> hi, all.  I use R on a unix (linux) box and am quite happy with it.
> However, sometimes I need to create a graph that needs to be used 
with
> Microsoft Word or Powerpoint (ug).  I can create a png or jpeg format
> picture, but the text look pretty crummy because jpeg is bitmapped.  I 
can
> also create a PS/EPS version (my preference), but then it doesn't 
display
> properly in word or powerpoint (but it prints OK).
> 
> I guess I have two questions:
>   1) Are there any plans for R to output a PICT format?  (which would
> solve this problem, I think, since PICT can be read by 
word/powerpoint and
> is not bitmapped).
>   2) Is there a way to get an R plot to come out looking good in
> powerpoint or word
> 

Greg

I had a similar problem when using Splus under UNIX, and this was one 
reason I switched to R under NT.

One (admittedly cumbersome) solution is to write the graph to a ps file, 
then take the file into Ghostview (freely available from web), convert the 
ps file to eps, and then insert an eps viewer. Then you can see it in 
word, but (yawn) it is all a bit of a hassle to straddle this particular  
UNIX/ microsoft divide. I did not notice degraded quality with this 
method. 

Or you can just put up with seeing only a graph frame in word (the graph 
will print fine on a ps printer, despite appearing as a frame on the 
screen).
----------------------------------
System info:
R version rw1022 on NT
ESS v. 5.1.18 using emacs ver. 20.4

----------------------------------
Sam

Sam McClatchie, Research scientist (fisheries acoustics))))))))))
NIWA (National Institute of Water & Atmospheric Research Ltd)
PO Box 14 901, Kilbirnie, Wellington, New Zealand
s.mcclatchie at niwa.cri.nz 

                    /\
...>><xX(°> // \\
                 /// \\\   
                //// \\\\
               ///  <°)Xx><<
              /////  \\\\\\
        ><(((°>   
  >><(((°>   ...>><xX(°>O<°)Xx><<

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