[Bioc-devel] using figures in .Rnw files
Tarca Adi Laurentiu
ltarca at biota.rsvs.ulaval.ca
Tue Mar 29 20:59:13 CEST 2005
Hi everyone,
I have a question about building the vignettes files (.Rnw).
Say I have a function myFunction() which produces 2 plots (invoking a x11()
for each of them). I want to use this function in a chunk
of the .Rnw file and the resulting figures to be inserted into the document.
The classic code:
<<myFigure,fig=TRUE,prefix=FALSE,echo=TRUE,include=FALSE,results=hide>>=
myFunction()
@
followed by,
\begin{figure}
\begin{center}
\includegraphics[width=4in,height=4in,angle=0]{myFigure}
\end{center}
\protect\label{fig:myFigure}
\end{figure}
will do the job but superposing the two figures, which is not what I want.
Neither setting par(mfrow=c(2,1)) before the call of myFunction()
is not a solution as the two figures are too compacted.
Thanks for any eventual suggestion,
Laurentiu
----------------------------------------------
Dr. Laurentiu Adi Tarca
==================================
[[alternative HTML version deleted]]
More information about the Bioc-devel
mailing list