[R] export graph to Word/Excel):

S.McClatchie s.mcclatchie at niwa.cri.nz
Wed Mar 7 03:57:36 CET 2001


Colleagues

----------------------------------
On 6 Mar 01,, Yu-Ling Wu wrote (re: [R] export graph to Word/Excel): 

> I have a set of script like this:
> 
> ----------------------
> summary(data)
> plot(time, users, type="o", xlab ="Time", ylab="Number
> of Users")
> ----------------------
> 
> I type "rterm --slave < script.r > output.doc" and the
> graphic doesn't
> actually in the output.doc file. How to make the
> graphic embedded in Word
> or Excel file?

------------------------------------

If you are on NT or windows, just put the cursor on the graph window, do 
ctrl c and paste into word with ctrl v. 

Or you can write the file out with postscript() and import it as a file (but 
you have to convert ps file to an eps with viewer if you want to see the file 
rather than a box in word, athough the box will print as a graphic).

Sam


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