[R] Size of win.metafile

Jinsong Zhao jszhao at yeah.net
Mon May 26 21:34:35 CEST 2014


Hi there,

I hope to use the emf plot produced by R in Word. However, I have 
problems with setting the plot size. Here is a mini-example code:

win.metafile("abcd.emf", height =4, width=4)
plot(1:10)
dev.off()

I hope to get a emf plot with size 4x4in and pointsize 12pt. However, I 
got a plot with size 5.333x5.333in and pointsize 16pt in Word. It seems 
that the emf file report its resolution with 96dpi, but Word assume it 
with 72dpi.

How to control on the dpi? (In my opinion, vector plot has nothing to do 
with dpi). I just hope to control the size and pointsize with something 
like the code above.

Any suggestions?

Best,
Jinsong



More information about the R-help mailing list