[R] Passing a LaTeX length to Sweave
Duncan Murdoch
murdoch.duncan at gmail.com
Sun Jul 11 02:43:46 CEST 2010
On 10/07/2010 10:35 AM, Thomas Levine wrote:
> I'd really love to do this
>
> \setkeys{Gin}{width=\columnwidth}
> <<label=something,fig=TRUE,echo=FALSE,width=\columnwidth,height=0.3\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
will be resized and things will be fine.
Duncan Murdoch
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list