Skip to content
Back to formatted view

Raw Message

Message-ID: <50EC231C.2040900@sophie.unam.mx>
Date: 2013-01-08T13:46:04Z
From: Ulises M. Alvarez
Subject: how to label two figures in the same chunk independently with knitr
In-Reply-To: <CAG7aifLYFR01H_yd1oikNFA+vezQyi1PrU_Eqqv=uHP8EKWf_A@mail.gmail.com>

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/