emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: babel: textual output and graphic results
Date: Fri, 24 Jun 2011 13:46:52 -0500	[thread overview]
Message-ID: <20110624184652.GE7163@x201> (raw)
In-Reply-To: <87y60rpmjc.fsf@gmail.com>

Eythan,

This sounds similar to something I'd already done on Worg, ie: dual
format returns in R. The first example (RBabelExample) is really R
outputting to PNG for viewing inline in emacs with inline-images, and
PDF for inclusion into Latex.

Maybe you can adapt it to return your text, and graph separately.

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

Enjoy.

On Fri, Jun 24, 2011 at 06:10:47AM -0400, Eythan Weg wrote:
>
> Hi,
>
> How could I effect the plot saved in a file and the output produced
> shown in the buffer by using a single execution of R in the following
> snippet?
>
> #+begin_src R :results output :session
> print(seq(1,10))
> plot(seq(1,10))
> #+end_src
>
> Thank you.
> Eythan
>
>


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

      parent reply	other threads:[~2011-06-24 18:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 10:10 babel: textual output and graphic results Eythan Weg
     [not found] ` <BANLkTimOd4mfgvbDxaR1xF3WjPFPFYwT57keREjdp5vtFep5PQ@mail.gmail.com>
     [not found]   ` <87iprvph8y.fsf@gmail.com>
2011-06-24 12:28     ` Rainer M Krug
2011-06-25 12:00       ` Eythan Weg
2011-06-25 17:45         ` Rainer M Krug
2011-06-24 18:11 ` Eric Schulte
2011-06-25 12:05   ` Eythan Weg
2011-06-25 18:41     ` Eric Schulte
2011-06-24 18:46 ` Russell Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110624184652.GE7163@x201 \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).