Skip to content
Prev 310290 / 398503 Next

Controlling R fonts through LaTeX

Perhaps you can use ps.options(family = "...") to set the font family globally.

If you really want to control R fonts through LaTeX, you can try the
tikzDevice package (optionally with knitr) following the instructions
in https://github.com/yihui/knitr-examples/blob/master/059-tikz.Rnw
This allows you to generate R plots with font style consistent with
your main document. Two other examples:
https://github.com/downloads/yihui/knitr/knitr-manual.pdf and
https://github.com/downloads/yihui/knitr/knitr-graphics.pdf

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Thu, Nov 8, 2012 at 7:00 AM, Karen Kotschy <karen.kotschy at gmail.com> wrote: