OSU Navigation Bar

The Ohio State University

Department of Statistics

Cockins Hall
rollover image OSU Statistics
            Home

design element

OSU Statistics

Home

News

Research & Consulting Groups

People

For Visitors

For Prospective Students

For Current Students, Staff & Faculty

Contact Us



rollover image

For Current Students & Faculty

rollover image

Courses

rollover image

Links

rollover image

Computer Support

rollover image

Internal Documents

rollover image

webmail

Creating Graphs Usable in Word from Splus and R

Often it is desirable to be able to put an S or R graph into a Windows program such as Word. However, typically, graphs are created in PostScript in S/R. This is fine on Unix, especially LaTeX but leaves something to be desired on Windows. For full usage information on these commands type: help(command) while in S or R.

Splus

In Splus there is the wmf.graph command, which will create a windows metafile, which can then be inserted into Word.

R

In R on Unix there is no option to create a metafile, however, R has the commands png and jpeg, which will create PNG or JPEG picture files, and can be inserted in to Windows programs.

In R on Windows there is an additional option, the win.metafile command, which is similar to the S wmf.graph command.

Transfer

At this point you will have to transfer the files that are created to a Windows machine and then insert them into your documents.

Remember, that some graphs when expanded will get grainy, so for presentations, this may take some traila and error before a good result is obtained.



If you have trouble accessing this page, or need an alternate format contact webmaster@stat.osu.edu.