Re: [R] Lattice xyplot multipanels

2013-05-22 Thread Santosh
Dear Rxperts.. Just figured how to add a text at a custom location in panel.groups.. use grid.text(x=unit(value1,"npc"),y=unit(value2,"npc"),label="label content") With this, I hope to stop flogging such a valuable black horse! :) On Wed, May 22, 2013 at 10:35 AM, Santosh wrote: > Dear Rxpe

Re: [R] Lattice xyplot multipanels

2013-05-22 Thread Santosh
Dear Rxperts, Using the above example, I have been playing around using viewport under "panel-function(...) {...}" block in conjunction with "panel.groups=function(..) {xyplot.}" code block.. I have not bee successful so far.. I was wondering if it is possible to pass user-defined functions (includ

Re: [R] Lattice xyplot multipanels

2013-05-21 Thread Santosh
Dear Rxperts, Sorry about that..forgot to update the numeric part of the multipanel group indicator... Below is the updated code... in addition to getting rid of the curly braces, is there a better way to control the position of panel.text flexibly instead of hardcoding. Thanks, santosh q <- dat

Re: [R] Lattice xyplot multipanels

2013-05-21 Thread Santosh
Dear Rxperts, Ok The "curly braces" as we talked before,... They appear if the "group" argument of "xyplot" function is entered as a numeric value; and don't when the values are letters. I just figured how to hide the strip borders...and also control the ticks in different axes... Any suggesti

Re: [R] Lattice xyplot multipanels

2013-05-21 Thread Santosh
Dear Rxperts, Using the same example above, is there a way to remove the borders of multi-panel strips and control the display of the borders of each panel.. for example, I would like to keep only side 1 & 2 of a panel... Thanks, Santosh On Wed, May 1, 2013 at 11:11 PM, Santosh wrote: > Th

Re: [R] Lattice xyplot multipanels

2013-05-01 Thread Santosh
Thanks for all tips/suggestions.. Just a few more comments.. The same code I use with a different data set in another project does not create those curly braces! Regards, Santosh On Wed, May 1, 2013 at 8:16 PM, Santosh wrote: > Sorry about the word "brackets".. Yes, I meant curly braces! I h

Re: [R] Lattice xyplot multipanels

2013-05-01 Thread Duncan Mackay
Hi Santosh Try this : q <- data.frame(G=rep(paste("G",1:3,sep=""),each=50), D=rep(paste("D",1:5,sep=""),each=30), a=rep(1:15,each=10),t=rep(seq(10),15), b=round(runif(150,10,20))) q$grp <- paste(q$D,q$a,sep=":") q$grp <- ordered(q$grp, levels=unique(q$grp)) q$dc

Re: [R] Lattice xyplot multipanels

2013-05-01 Thread David Winsemius
On May 1, 2013, at 8:16 PM, Santosh wrote: > Sorry about the word "brackets".. Yes, I meant curly braces! I have not > heard of "curley braces"! :). Curly braces surrounding the values of > "strip.levels" appear on the strip of multipanel plots. Not in my running of your code. > Thanks, >

Re: [R] Lattice xyplot multipanels

2013-05-01 Thread Santosh
Sorry about the word "brackets".. Yes, I meant curly braces! I have not heard of "curley braces"! :). Curly braces surrounding the values of "strip.levels" appear on the strip of multipanel plots. Thanks, Santosh On Wed, May 1, 2013 at 7:44 PM, David Winsemius wrote: > > On May 1, 2013, at 6:

Re: [R] Lattice xyplot multipanels

2013-05-01 Thread David Winsemius
On May 1, 2013, at 6:16 PM, Santosh wrote: > Derar Rxperts, > I have a strange situation.. I see curly brackets Wait right here. What do you mean by "brackets"? In some locales, such as mine, that might mean "[" ; in other domains... well, who knows? I don't see any "[". The Urban Legends N

[R] Lattice xyplot multipanels

2013-05-01 Thread Santosh
Derar Rxperts, I have a strange situation.. I see curly brackets around "strip.levels" in multipanel strips while using lattice::xyplot. .How do I get rid of the curly brackets? For some reason, I am not able to reproduce the problem using an example below... Any suggestions are highly welcome! Tha