I use R for data analysis and to create quite complex graphs. Now I am looking for a nice (and easy) way to include my plots in LaTex. Preferably, vector-based and automatically with the font I am using in LaTeX.
I am using TeXstudio with MiKTeX on Windows 10.
Do you have any suggestions?
pdfcrop
and then include them as any other PDF. This might not be the most modern way, but it works well.tikzdevice
library works well. Then you can use\includegraphics
or if you're usingknitr
you can generate the graph and insert it automatically. See How to get LaTeX math into Legend of R plot and Export plots from R directly to Latex. Either one of these may be a a near duplicate of your question.