Re: [R] Different number of labels in different panels

From: Deepayan Sarkar <>
Date: Mon, 31 Dec 2007 09:49:12 -0800

On 12/31/07, Hofert Marius <> 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


-Deepayan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 31 Dec 2007 - 17:50:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 Dec 2007 - 18:30:04 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive