How to control the placement of headers for numbers in KnitR?

Is there a way to specify the placement of captions for the numbers generated by R using KnitR? I hope that there is something functionally equivalent to the option xtable() caption.placement.

Below is a minimal working example.

\documentclass[12pt, english, oneside]{amsart}
\begin{document}

The caption for Figure \ref{fig:plot} is placed below the figure. Could we place it above, instead?
<<plot, echo=FALSE, fig.cap="Default caption placement is below the figure.">>=
plot(x=0, y=0)
@

\end{document}
+5
source share
1 answer

It is most likely best to deal with the latex style for all shapes, but you can customize the shapes with hooks. The fig.envchunk parameter controls the environment in which the block is inserted. You can always make your own version figurewith your own formatting.

+3
source

All Articles