Re: [R] Xyplot - adding model lines to plotted points

2007-08-02 Thread Deepayan Sarkar
On 8/2/07, Sandeman, L. R. <[EMAIL PROTECTED]> wrote: > Hello, > > I have written code to plot an xyplot as follows: > > library(lattice) > xyplot(len~ageJan1|as.factor(cohort),groups=sex,as.table=T,strip=strip.c > ustom(bg='white',fg='white'),data=dat, > xlab="Age (January 1st)",ylab="Length (cm)"

[R] Xyplot - adding model lines to plotted points

2007-08-02 Thread Sandeman, L. R.
Hello, I have written code to plot an xyplot as follows: library(lattice) xyplot(len~ageJan1|as.factor(cohort),groups=sex,as.table=T,strip=strip.c ustom(bg='white',fg='white'),data=dat, xlab="Age (January 1st)",ylab="Length (cm)",main="Linear models for male and female cod, by cohort",type='p', l