emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refresher on including R/ggplot2 output via latex/pdf?


From: John Hendy
Subject: Re: Refresher on including R/ggplot2 output via latex/pdf?
Date: Mon, 28 Oct 2019 00:13:25 -0500

On Mon, Oct 28, 2019 at 12:02 AM Jack Kamm <address@hidden> wrote:
>
> John Hendy <address@hidden> writes:
>
> > On Sun, Oct 27, 2019 at 11:31 PM Jack Kamm <address@hidden> wrote:
> >>
> >> Your code block looks fine to me. The typical R code block headers I use 
> >> is as follows:
> >
> > Did you try to reproduce my example, by chance?
>
> I've just now tried executing/exporting your example code blocks, and
> they worked fine for me.
>
> When I execute them I get a link to a result png inserted into the
> buffer, and when I export to latex/pdf I get the plot image inserted
> correctly into the PDF.
>
> This is for the example code blocks in both the original and reply
> emails, with and without the :session header.

Wow, I'm stumped then. I just did a git pull and make clean/make and
still get the same results.

Org mode version 9.2.6 (release_9.2.6-559-ga01a8f @
/home/jwhendy/.elisp/org/lisp/)

This is my full file after C-c C-c on the block:
-----
* test

#+begin_src R :session :results output graphics :file foo.png :exports
results :eval never-export
library(ggplot2)

df <- data.frame(x=c(1, 2), y=c(2, 4))
p <- ggplot(df, aes(x = x, y = y)) + geom_point()
print(p)

#+end_src

#+RESULTS:
-----

This is with emacs -Q and loading the minimal config from the initial
email. Any ideas on where I might look next?

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]