mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 06:32:53 +00:00
8b52bf09e0
If a [:file filename.ext] header arg is provided, then all graphical output from the source block is captured on disk, and output of the source block is a link to the resulting file, as with the graphics-only languages such as gnuplot, ditaa, dot, asymptote. An attempt is made to find a graphics device corresponding to the file extension (currently .png, .jpg, .jpeg, .tiff, .bmp, .pdf, .ps, .postscript are recognised); if that fails, png format output is created. Additionally, values for several arguments to the R graphics device can be passed using header args: :width :height :bg :units :pointsize :antialias :quality :compression :res :type :family :title :fonts :version :paper :encoding :pagecentre :colormodel :useDingbats :horizontal Arguments to the R graphics device that are not supported as header args can be passed as a string in R argument syntax, using the header arg :R-dev-args An example block is (although both bg and fg can be passed directly as header args) \#+begin_src R :file z.pdf :width 8 :height 8 :R-dev-args bg="olivedrab", fg="hotpink" plot(matrix(rnorm(100), ncol=2), type="l") \#+end_src |
||
---|---|---|
.. | ||
langs | ||
org-babel-comint.el | ||
org-babel-exp.el | ||
org-babel-lob.el | ||
org-babel-ref.el | ||
org-babel-table.el | ||
org-babel-tangle.el | ||
org-babel.el |