Re: [R] Passing a LaTeX length to Sweave

2010-07-10 Thread Thomas Levine
Darn. Well here's what I'll do %Preamble <>= columnwidth=whatever the \columnwidth is @ %Figures \setkeys{Gin}{width=\columnwidth} <>= plot(y~x) @ It needs to be exact so that the line weight and point size are consistent across figures and with the text. 2010/7/10 Duncan Murdoch : > On 10/07/2

Re: [R] Passing a LaTeX length to Sweave

2010-07-10 Thread Duncan Murdoch
On 10/07/2010 10:35 AM, Thomas Levine wrote: I'd really love to do this \setkeys{Gin}{width=\columnwidth} <>= plot(y~x) @ The \columnwidth macro does not work, of course, in the second line. What can I do instead? Pass a number. As long as it's reasonably close to the truth the graphs wi

Re: [R] Passing a LaTeX length to Sweave

2010-07-10 Thread Sharpie
Thomas Levine wrote: > > I'd really love to do this > > \setkeys{Gin}{width=\columnwidth} > <>= > plot(y~x) > @ > > The \columnwidth macro does not work, of course, in the second line. > What can I do instead? > This may be difficult as there is no two-way communication between R and LaTeX i

[R] Passing a LaTeX length to Sweave

2010-07-10 Thread Thomas Levine
I'd really love to do this \setkeys{Gin}{width=\columnwidth} <>= plot(y~x) @ The \columnwidth macro does not work, of course, in the second line. What can I do instead? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P