From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Tangle including code used for :results graphic? Date: Thu, 02 Jul 2015 15:55:43 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAey4-0006Fj-Hf for emacs-orgmode@gnu.org; Thu, 02 Jul 2015 09:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAey0-0002zi-Lb for emacs-orgmode@gnu.org; Thu, 02 Jul 2015 09:55:56 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:33363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAey0-0002yC-AG for emacs-orgmode@gnu.org; Thu, 02 Jul 2015 09:55:52 -0400 Received: by wgck11 with SMTP id k11so64075849wgc.0 for ; Thu, 02 Jul 2015 06:55:51 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id nb9sm8817122wic.10.2015.07.02.06.55.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 06:55:49 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I have the following source block: #+NAME: fig_plot #+begin_src R :exports results :file-ext pdf :results graphics :width 4.5 := height 6 plot( runif(100), runif(100) ) #+end_src which works fine. But I would like to have the surrounding plotting code in the tangled file as well, so that I can, outside org, update the graph by just running the tangled script. Is there an option to tangle *including the automatic plotting code* so that the plot is created on the pdf device with the options given? If not, how can I achieve this? Thanks, Rainer =2D-=20 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: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJVlULjAAoJENvXNx4PUvmCoaIH/A8ENQIUpegVv47YZvj9Fk5c 2hGDbVvWAiaUwGDTUNkL+h+Nf5tchAgtTbD6lS0IPFfiHBEkDx9xucFzCJP8wnNe nvxx2kbgjv29W7zPw0keMi9xw1jZtnsh90YlnNUBpCK18Cu7mQlDGvFnlL6rM+I5 LInqoeS1FpIbc48S2+gblX5yrpaBJYHkdzYpK5Uuqp5jgmfmVKzeuHdiDZLEfb54 JOVPCkbfZW7rIhQwmSGvGdwV1mBKcksaa7i339myCIZdJwBqWVrLqS7Jp8TFjPtp jLSl2dai+TWKR05xRfG1MQzFMaR2VA9JVx0/ffZE5rHanuEh1LzTRkALdANl76o= =Qdod -----END PGP SIGNATURE----- --=-=-=--