[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Tangle including code generating graphics for :results graphics
From: |
Rainer M Krug |
Subject: |
[O] Tangle including code generating graphics for :results graphics |
Date: |
Thu, 24 Sep 2015 10:26:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Hi
Is it possible to tangle an R code block including the code which is
generating the graphs when using =:results graphics= ?
I would like to tangle these code blocks generating the graphs as I
would like to have a script which I can use to easily update all graphs
when the simulated input data is updated. I have this for the actual
analysis which works perfectly, but would like to have the same for the
graphs. At the same time, I like the clarity of specifying :width and
:height and other parameter for the plotting as header arguments.
I have
,----
| :PROPERTIES:
| :header-args+: :prologue "env <- fitBFGS; attach(env)"
| :header-args+: :epilogue "detach(env); rm(env)"
| :END:
`----
and this is tangled perfectly - but obviously not the code for
plotting. Is there an argument / setting to enable this?
Thanks,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: address@hidden
Skype: RMkrug
PGP: 0x0F52F982
signature.asc
Description: PGP signature
- [O] Tangle including code generating graphics for :results graphics,
Rainer M Krug <=