Skip to content
Prev 4506 / 21307 Next

[Bioc-devel] BiocStyle for styling Sweave (and other?) vignettes

On 07/16/2013 07:11 AM, Ou, Jianhong wrote:
Thanks for the comments, hopefully we can make the package a bit better.

I think \Rcode{x at y} does the right thing?

The package doesn't provide any special facilities for drawing multiple figures 
in one chunk then inserting them separately; One approach is

<<fig>>=
pdf("fig-1.pdf"); plot(1:10); invisible(dev.off())
pdf("fig-2.pdf"); plot(10:1); invisible(dev.off())
@

\begin{figure}
   \centering
   \includegraphics[width=.45\textwidth]{fig-1}
   \includegraphics[width=.45\textwidth]{fig-2}
   \caption{Some figures}
   \label{fig:figs}
\end{figure}

Martin