Re: [R] Lattice: groups and no groups with panel.superpose

2008-11-16 Thread Robert Buitenwerf
Thanks Gabor and Baptiste, Both your suggestions give me the results I was looking for! Robert > CC: r-help@r-project.org > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [R] Lattice: groups and no groups with panel.superpose > Date: Sat, 15 Nov 2008 16:59:3

Re: [R] Lattice: groups and no groups with panel.superpose

2008-11-15 Thread baptiste auguie
Hi, I think the following code should do what you want, xyplot(yvar~year|week,data=df,layout = c(4, 5), type='p', groups = temp , panel = function(x, y, ...) { panel.superpose(x, y,

[R] Lattice: groups and no groups with panel.superpose

2008-11-15 Thread Robert Buitenwerf
Dear R listers, I am trying to create a lattice plot with independent regression lines per group for each panel, plus one overall regression line per panel. I succeed in having the separate regression lines for each group per panel, but I can't figure out how to add the overall regression line o