[R] adjust font in ggplot2 to LaTeX document
bbolker at gmail.com
Mon Oct 1 12:19:37 CEST 2012
Jonas Stein <news <at> jonasstein.de> writes:
> how can i adjust the font in a ggplot2 qplot so that it will look
> similar to the LaTeX font?
> Computer Modern Sans Serif in the same size would be nice.
> My output device is
> ggsave(filename="test.pdf", width=5.5, height=3, dpi=300)
> and i will include the graphic with 5.5 inch in LaTeX.
The easiest thing to do is to use the tikzDevice device
for graphics output, and in turn the easiest thing to do is
to use it within knitr ... google 'tikzDevice' ...
More information about the R-help