Re: [R] strip function

From: Deepayan Sarkar <>
Date: Wed 04 Oct 2006 - 15:27:42 GMT

On 10/4/06, <> wrote:
> Hi,
> I would like to asign titles into strip of a panel of curves designed
> thanks to a xyplot function (lattice package)
> I ve tried the "strip" function, ...
> here is my code
> I would like to write in the strip of each panel conditionning varialbe
> (here, it is data[,1])
> xyplot (data[,3] ~ data[,2] | data[,1] , strip.default (which.given=1,
> which.panel = c(1:15), c
> ("26","28","15","2","31","10","16","21","21.5","5","17","14","7","8","30"),
> factor.levels=c("26","28","15","2","31","10","16","21","21.5","5","17","14","7","8","30"),strip.names=c(1,0),strip.levels=c(0,0)),panel=function(x,y)
> {
> panel.xyplot(x,y,pch=4,col=3)
> type = c("p", "r")
> COEFF<-coef(lm(log(y)~x))
> panel.curve(exp(COEFF[1]+COEFF[2]*x),col=4)
> a<-round(COEFF[1],digit=2)
> b<-round(COEFF[2],digit=2)
> formula<"y=exp(",a,b,"x)",sep=""))
> panel.text(10,700,formula)
> })
> I cannot get anny result exept one page with a big strip on which is
> written 26 and then the curve without specified strip
> CAn anyone give me some advices ?


(1) acquire some rudimentary R programming skills, which you currently do not seem to have. See the links under "Documentation" in for some possible starting points.

(2) read the posting guide at, and follow its suggestions. In particular, give a _reproducible example_ and describe what you _want to do_, not some badly written code which fails to do it (in fact I'm surprised that your code does anything at all).

Deepayan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu Oct 05 01:32:28 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 04 Oct 2006 - 16:30:08 GMT.

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