[R] how to label two figures in the same chunk independently with knitr
Ulises M. Alvarez
uma at sophie.unam.mx
Tue Jan 8 14:46:04 CET 2013
On 01/08/2013 04:17 AM, Francesco Sarracino wrote:
> Dear R helpers,
>
> I am using knitr to run analysis with R and edit my document with Latex. I
> am wondering whether there is a way to include 2 or more pictures per chunk
> and being able to refer them in the text independently and eventually
> whether it is possible to give them different captions.
Hi:
You may use, main = " ", within each plot; or take a look at the LaTeX
package, subcaption:
http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Subfloats
--
Ulises M. Alvarez
http://sophie.unam.mx/
More information about the R-help
mailing list