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

2007-12-31 Thread Deepayan Sarkar
On 12/31/07, Hofert Marius <[EMAIL PROTECTED]> 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 th

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

2007-12-31 Thread Gabor Grothendieck
Use this panel function: function(x,y,subscripts,...){ panel.superpose(x, y, subscripts, ...) grps <- as.character(sort(unique(dataframe[subscripts,2]))) draw.key(simpleKey(grps), TRUE, vp = viewport(0.15, 0.9)) } The code below is the same as in your post except we have added library

[R] Different number of labels in different panels

2007-12-31 Thread Hofert Marius
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, bo