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
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,
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
3 matches
Mail list logo