Re: [R] lattice key inside panel

2010-02-03 Thread Deepayan Sarkar
On Wed, Feb 3, 2010 at 10:50 AM, Santosh santosh2...@gmail.com wrote: Dear R-experts.. I am trying to generate legend inside panels of lattice barplots.. Following is a sample dataset..   Sno DN  EP Y1 Y2 1    1 D1 A20 19 19 2    1 D1 A50  8  9 3    1 D1 A70  3  4 4    2 D2 A20 22 22 5  

Re: [R] lattice key inside panel

2010-02-03 Thread Santosh
Dear R-experts.. Thanks to Dennis and Deepayan for the valuable tips; I used a work-around to indicate grouping variable inside a panel of a lattice. I am yet to get the legends properly. Is subscripts needed for generating the legends inside a lattice panel? The work-around R code for the

Re: [R] lattice key inside panel

2010-02-02 Thread Santosh
Dear R-experts.. I am trying to generate legend inside panels of lattice barplots.. Following is a sample dataset.. Sno DN EP Y1 Y2 11 D1 A20 19 19 21 D1 A50 8 9 31 D1 A70 3 4 42 D2 A20 22 22 52 D2 A50 13 14 62 D2 A70 6 7 73 D2 A20 23 23 83 D2 A50 12 13 9

Re: [R] lattice key inside panel

2009-02-05 Thread Dieter Menne
Deepayan Sarkar deepayan.sarkar at gmail.com writes: One other thing that has so far eluded me is how to specify two different kinds of symbols on a single column. The key above shows text line text rectangle but I would really like to get text line text rectangle but this

Re: [R] lattice key inside panel

2009-02-05 Thread Deepayan Sarkar
On Thu, Feb 5, 2009 at 11:28 AM, Dieter Menne dieter.me...@menne-biomed.de wrote: Deepayan Sarkar deepayan.sarkar at gmail.com writes: One other thing that has so far eluded me is how to specify two different kinds of symbols on a single column. The key above shows text line text

[R] lattice key inside panel

2009-02-04 Thread Iago Mosqueira
Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than panel I am using draw.key(list(text=list(lab='catch'), lines=list(lwd=c(2)),

Re: [R] lattice key inside panel

2009-02-04 Thread Deepayan Sarkar
On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira iago.mosque...@gmail.com wrote: Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than panel I am using

Re: [R] lattice key inside panel

2009-02-04 Thread Deepayan Sarkar
On Wed, Feb 4, 2009 at 2:13 PM, Iago Mosqueira iago.mosque...@gmail.com wrote: Deepayan Sarkar wrote: On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira iago.mosque...@gmail.com wrote: Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses

Re: [R] lattice key inside panel

2009-02-04 Thread Iago Mosqueira
Deepayan Sarkar wrote: On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira iago.mosque...@gmail.com wrote: Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than