From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Problem with babel and R + lattice Date: Thu, 8 Mar 2012 14:52:41 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5kKO-0000x8-W3 for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:52:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5kKK-0005Q0-4b for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:52:48 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:53234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5kKJ-0005Pf-R1 for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:52:44 -0500 Received: by bkwq16 with SMTP id q16so870751bkw.0 for ; Thu, 08 Mar 2012 12:52:41 -0800 (PST) In-Reply-To: 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 Drat. I meant to add that when I run the code exactly as I have it from R directly, it works. I literally copy and paste my org-mode babel block code line by line into a terminal and obtain the proper output via tikz. *That's* the perplexing part. What would be working directly from R and not from Org-mode? For reference, I've generated plenty of stuff just like this via org-mode/babel. Come to think of it, even another lattice plot. Not sure how to pinpoint what's goofy about this specific plot. John On Thu, Mar 8, 2012 at 2:40 PM, John Hendy wrote: > I have an R block like so: > > #+begin_src R > > library(lattice) > library(tikzDevice) > > =3Dbunch of code=3D > > barchart(side$name~side$x2,groups=3Dside$type,horiz=3DT, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 xlim=3Dc(0,0.75),col=3Dc("lightblue","yellow"= ),xlab=3D"Product > Performance (2-box)") > > dev.off() > tools::texi2dvi("bar-2b.tex",pdf=3DT) > > #+end_src > > The resultant tex file is empty where the tikz code should be and > texi2dvi fails. Any suggestions? If I change my plot to base graphics > with barplot, it works. I'm thinking this is a lattice/babel issue? > > > Thanks for any input, > John