2 ms·
Does anyone know of an equivalent solution for R/ggplot? I feel sad labelling my plots with R's fonts and equation formatting, but haven't found an alternative.
by moultano 10y ago
Does anyone know of an equivalent solution for R/ggplot? I feel sad labelling my plots with R's fonts and equation formatting, but haven't found an alternative.
- andrewla 10y agotikzDevice [1] defines a device in tikz terms, which I've used for vanilla R plots, and should work for ggplot, but I'm not positive. Actually, a quick search yielded [2], so it appears that ggplot2 is supported as well. And apparently supported in one of the knitr examples [3] (if you use knitr, which I highly recommend). [1] https://cran.r-project.org/web/packages/tikzDevice/index.html https://cran.r-project.org/web/packages/tikzDevice/index.htm... [2] http://iltabiai.github.io/tips/latex/2015/09/15/latex-tikzdevice-r.html http://iltabiai.github.io/tips/latex/2015/09/15/latex-tikzde... [3] https://yihui.name/knitr/demo/graphics/ https://yihui.name/knitr/demo/graphics/