Skip to content
Back to formatted view

Raw Message

Message-ID: <200103070258.f272wbL15984@storm.niwa.cri.nz>
Date: 2001-03-07T02:57:36Z
From: S.McClatchie
Subject: export graph to Word/Excel):

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