[R] Different number of labels in different panels

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Dec 31 18:49:12 CET 2007


On 12/31/07, Hofert Marius <m_hofert at web.de> wrote:
> Hi,
>
> I would like to put a number to each of the plotted curves in each
> panel. The problem is that there are different numbers of curves in
> different panels, so as you can see from the code below, I could put
> the correct numbers to the curves in the first panel, but for the
> second panel, both location and number of labels are incorrect (I
> would like to have "(1)" at location x=3.5, y=211 and of course no
> label "(2)" in the second panel). What is the correct way to solve
> this? I have a vector where the i-th entry specifies the number of
> curves in panel i, so I somehow have to bring this vector into play...

A common legend is the usual approach, but take a look at

?panel.number

-Deepayan



More information about the R-help mailing list