Skip to content
Prev 44597 / 398526 Next

R: Including R plots in a Microsoft Word document

On Fri, Feb 20, 2004 at 05:54:33PM +0200, Mahmoud K. Okasha wrote:
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		<---