Re: [R] Adding text to strip in xYplot

2008-04-09 Thread John Poulsen
Hello Christoph, Oops, I see that the factor.levels function is in the help menu for strip.default. I had tried it, but not specified it correctly. Thanks again for you help, John Christoph Meyer wrote: > Hi John, > > a solution to your problem would be using strip.custom like this: > > ...

Re: [R] Adding text to strip in xYplot

2008-04-09 Thread Christoph Meyer
Hi John, a solution to your problem would be using strip.custom like this: ... with(dat,xYplot(Cbind(ycomb, y.up, y.low)~x1|factor(grp), data=dat,type="l", method="bands", scales=list(y=list(relation="free"),x=list(alternating=c(1,1,1))), ylim=list(c(0,1200),c(0,1)), strip=strip.custom(fact

[R] Adding text to strip in xYplot

2008-04-09 Thread John Poulsen
Hello again, I have been trying to add an expression to the strips in xYplot to no avail. For example, in the code below, the text in the strips for each panel is "Anls" and "Plts". However, I would like it to add "Anls km^2" and "Plants km^2" with the exponents raised. I tried resetting the