0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 06:32:53 +00:00
org-mode/contrib/babel/lisp
Dan Davison 8b52bf09e0 org-babel: capture graphical output from R
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
2009-10-19 21:44:28 -04:00
..
langs org-babel: capture graphical output from R 2009-10-19 21:44:28 -04:00
org-babel-comint.el merging with the org-babel repository 2009-09-11 13:44:05 -06:00
org-babel-exp.el now respects the properties on export 2009-09-12 12:14:09 -06:00
org-babel-lob.el org-babel: allow #+lob line to be terminated by end-of-buffer 2009-09-30 07:19:13 -06:00
org-babel-ref.el merging with the org-babel repository 2009-09-11 13:44:05 -06:00
org-babel-table.el merging with the org-babel repository 2009-09-11 13:44:05 -06:00
org-babel-tangle.el org-babel: :noweb header argument now expands noweb references before source-block evaluation 2009-10-19 12:12:19 -06:00
org-babel.el org-babel: :noweb header argument now expands noweb references before source-block evaluation 2009-10-19 12:12:19 -06:00