2 ms·
tikzDevice [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
by andrewla 10y ago
tikzDevice [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/