Sounds like it should be a common problem, but I didn't find an obvious trick. Consider the knitr Rnw file below,
\documentclass[twocolumn, 12pt]{article}
\usepackage{graphicx}
\begin{document}
%\SweaveOpts{dev=pdf, fig.align=center}
\begin{figure*}
<<aaa, fig.width=8, fig.height=5, fig.show=hold>>=
plot(1,1)
@
\end{figure*}
\end{document}
I would like this wide figure to span two columns, using a {figure*}
LaTeX environment. Is there a hook for that?
EDIT: wrapping the chunk in figure*
gives the following output.
kframe
environment came from in the first place (from the source, it looks like a private communication). – Shan