#+name: input | 1 | 2 | | 2 | 4 | | 3 | 9 | #+NAME: pvals_waw #+headers: :var input=input #+BEGIN_SRC R :results graphics :file output.pdf plot(input) #+END_SRC after evaluating the code block I get #+RESULTS: pvals_waw [[file:output.pdf]]