[R] Graphical Parameters

Stefan Grosse singularitaet at gmx.net
Tue Aug 18 09:11:06 CEST 2009


On Mon, 17 Aug 2009 16:47:23 +0000 mohsin ali <ali.mohsin at hotmail.com>
wrote:

MA> I also found this way much easier. But when to have figure on MS
MA> Word, it is copied and then pasted on MS word then minor pixels
MA> appears. How to get a clear figure?

Use another device. I personally use *.eps which can be obtained by:

postscript("myplot.eps",width=8,height=8,paper="special",horizontal=F)
plot(...)
dev.off()

note that width and height are different here to the png device where
the size is in points.

You can use this in word 200x but note that the plot will look ugly on
the screen. It will look great when you print it with a postscript
printer or when you produce a pdf out of that word file.

Look also here on how you could produce wmf/emf files:
http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export#exporting_r_graphs_-_cross-platform_solutions

hth
Stefan




More information about the R-help mailing list