[R] Need Help: User Defined R Functions in Sweave/Latex
M. Jankowski
mjankowski at gmail.com
Thu Jun 21 16:37:20 CEST 2007
> Back to Dieter's solution for a moment, take note of the Sweave FAQ
> (also in the above manual), specifically FAQ A.9, which covers the issue
> of figure chunks and multiple plots, proposing a looping approach
> consistent with Dieter's.
>
> I hope that this might give you some other insights into alternative
> approaches.
>
> HTH,
>
> Marc Schwartz
>
Marc,
You sure did help me. I reviewed A.9 and found that I simply needed to set:
<< results=tex, echo=false >>=
in the initial function call. Then the route I was pursuing worked smashingly.
The rest of your post has me thinking about my approach. I have more
than enough data, in my mind at least, to justify the extra effort
(and possible confusion) of including captions. I'll need to look at
the options for the "pdf" function to see if it already has the
functionality I am looking for.
Thank you very much for the nice reply to my post!
Matt
More information about the R-help
mailing list