[R] Lattice, ggplot, and pointsize
nalimilan at club.fr
Tue May 21 13:18:34 CEST 2013
When inserting R plots into a document using odfWeave, I fought for a
while to get Lattice plots use the same text size as base plots. I
eventually discovered that specifying a point size via e.g.
svg(pointsize=10) has no effect on Lattice plots. One needs to adjust
the size manually via:
This is also developed for both Lattice and ggplot2 by this blog post:
So I am wondering whether is a by-design limitation or whether this
could be improved. I find it very useful to be able to adapt text size
to the output device instead of changing plotting parameters for each
plotting system (especially when you change the resolution of PNG
output, or move from one output device to another).
Thanks in advance
More information about the R-help