Skip to content
Back to formatted view

Raw Message

Message-ID: <20040220163635.GB26073@pusa.informat.uv.es>
Date: 2004-02-20T16:36:35Z
From: uaca@alumni.uv.es
Subject: R: Including R plots in a Microsoft Word document
In-Reply-To: <005901c3f7c9$d7dd5640$0d00a8c0@okasha>

On Fri, Feb 20, 2004 at 05:54:33PM +0200, Mahmoud K. Okasha wrote:
> Greetings List,
> 
> I am conducting some large simulations using R. As a result, I get many plots but I'm having some trouble with including some of them in a Microsoft Word document. Can any one tell me the easiest method of having copies of the R-graphs in the Word documents?

R can produce at least PostScript, PDF, png, jpeg/jpg

see:

	help(postscript)
	help(pdf)
	help(png)
	help(jpeg)

I don't use word, for me the PostScript format (more precisely Encapsulated
PostScript/.eps) is the best/more easy/powerful format if you don't have thousands of
points or lines :-)

por instance, to print a simple plot:

postscript(file="somefile.eps");

plot(whatever);

dev.off(); <<---- Important

other formats are similar

regards

	Ulisses


                Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

Humans are slow, innaccurate, and brilliant.
Computers are fast, acurrate, and dumb. 
Together they are unbeatable

--->	Visita http://www.valux.org/ para saber acerca de la	<---
--->	Asociaci?n Valenciana de Usuarios de Linux		<---