Embedding R plots in Latex via org-mode
问题 I'm just getting started with org-mode and so far I love it. I've seen that it is possible to insert R in the org-mode file and execute it upon export. But I have some trouble getting org-babel (the code embedding) to generate the plot I'm interested in and embed the resulting image instead of the code or the output from running the code. So far I've got this to work: #+BABEL: :session *R* :results output graphics :exports both #+begin_src R :file img.pdf :results output graphics :session *R*