[R] latex \subfloat{} incompatible with sweave/knitr code

Liviu Andronic landronimirc at gmail.com
Wed Aug 29 13:44:45 CEST 2012


On Wed, Aug 29, 2012 at 1:34 PM, Steve Lianoglou
<mailinglist.honeypot at gmail.com> wrote:
> This isn't exactly what you want, but I'm using kintr and building and
> saving my figures in the their own "chunks" then just inlining the
> path to the generated figure in the \subloat{..}. Things are working
> fine, eg. my default settings are to suppress chunk echo/output,
> generate pdf figures, and fig.path='figs/gen-' so:
>
> <<someFig>>
> plot(1:10, 1:10, ...)
> @
>
> \begin{figure}[...]
> ...
>   \sublfoat[some][caption]{
>     \includegraphics[...]{figs/gen-someFig.pdf}
>   }
> ...
> \end{figure}
>
> does the trick for me.
>
Hmm, but how would I use this for tables? In the subfloats I'm
outputting Hmisc::describe() results.

Thanks
Liviu




More information about the R-help mailing list