[R] Font size R

Filoche pmassicotte at hotmail.com
Mon Aug 15 23:31:49 CEST 2011


Hi everyone.

I'm using this following code:

pdf(file="Fig5.pdf", width = 4.86, height = 6.29, pointsize = 10, family
='Times')
par(mfcol = c(3,2), mai = c(0.4,0.8,0,0), omi = c(0.7, 0, 0.7, 0.1));
hist( rnorm(100) ) 
dev.off()

When I open this in any vectorial software (like Illustrator), it says that
my font size is 7 instead of 10 that I specified. 


I have tried (whitout the PAR line):

pdf(file="Fig5.pdf", width = 4.86, height = 6.29, pointsize = 10, family
='Times')

hist( rnorm(100) ) 
dev.off()

And this is working.


Anyone know why the font size is not retained when I use PAR? It seems that
R is adjusting font size when using PAR to split my device into subplot.

Regards,
Phil

--
View this message in context: http://r.789695.n4.nabble.com/Font-size-R-tp3745762p3745762.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list