Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-15 Thread Graham Smith
Dan, > Before running the export, do you have a link to the image *already* in > your org buffer? > > If no, then you should just get one copy of the image. > > If yes, then, if the link is positioned in such a way that it will get > replaced by the output (no intervening lines between end of sour

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-15 Thread Dan Davison
Hi Graham, I think your solution is sensible, and thanks for bringing up these issues. Perhaps, as you suggest, we should be automatically setting these attributes in the latex output; we'll get back to you on that. Regarding the number of copies of the figure in the output, it should work as fol

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
OK, This was all to do with the ordering of the latex code Below works, includes the R code, but only one plot of the expected size. #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both boxplot(Wingcrd,Tarsus,Head,Wt,names=c("Wingcrd","Tarsus","Head

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
This works #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports none boxplot(Wingcrd,Tarsus,Head,Wt,names=c("Wingcrd","Tarsus","Head","Wt")) #+end_src #+resname: Boxplots #+CAPTION:Trial boxplots with babel #+LABEL: fig:trial boxplots #+ATTR_LaTe

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
A little progress here #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both boxplot(Wingcrd,Tarsus,Head,Wt,names=c("Wingcrd","Tarsus","Head","Wt")) #+end_src #+resname: Boxplots #+ATTR_LaTeX: width=10cm [[file:BoxplotSummary.pdf]] This gives me a

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
IGNORE everything in my last email. The only relevant bit is > \includegraphics[width=10em]{BoxplotSummary.pdf} > \includegraphics[width=10em]{z.pdf} > > So it seems to be ignoring the change in height and width commands for > z.pdf, and defaulting to 10em. If I then edit the [width=10em] bit in

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-12 Thread Graham Smith
Dan/Torsten Thanks, It seems to be a orgemode/babel/Latex issue. If I view the pdf from within Emacs by double clicking on the link, the size changes as expected, but if I compile the whole document as a pdf the plots appear as small. The error in the log is ! LaTeX Error: Cannot determine size

Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-12 Thread Dan Davison
Hi Graham, Graham Smith writes: > I don't seem able to change the size of graphics in the PDF output. > > #+begin_src R :file z.pdf :width 20 :height 20 :R-dev-args > bg="olivedrab", fg="hotpink" > plot(matrix(rnorm(100), ncol=2), type="l") > #+end_src > > Using this example from an earlie

[Orgmode] [babel] changing size of R graphics in pdf output

2009-12-12 Thread Graham Smith
I don't seem able to change the size of graphics in the PDF output. #+begin_src R :file z.pdf :width 20 :height 20 :R-dev-args bg="olivedrab", fg="hotpink" plot(matrix(rnorm(100), ncol=2), type="l") #+end_src Using this example from an earlier post, regardless of how I change the width and