Skip to content
Prev 131001 / 398502 Next

Sweave: Variables in code chunk headers

Michael Hoffman <b3i4old02 <at> sneakemail.com> writes:
Not in the <<>>, but you could set a hook for fig:
If option "SweaveHooks" is defined as list(fig = foo), and foo is a function,
then it would be executed before the code in each figure chunk. This is
especially useful to set defaults for the graphical parameters in a series of
figure chunks.

Dieter