On 9/10/07, Ross Darnell <[EMAIL PROTECTED]> wrote:
> Thanks Frede
>
> I didn't know about the "r" type.
For the record, this is probably what you wanted:
xyplot(<...>
panel = panel.superpose,
panel.groups = function(x, y, ...) {
panel.xyplot(x, y, ...)
if (length(x) > 0) panel.lmline(x, y, ...)
})
x[subscripts] inside the panel function doesn't give anything
meaningful ('x' is already subscripted).
-Deepayan
>
> Ross Darnell
>
>
> -----Original Message-----
> From: Frede Aakmann Tøgersen [mailto:[EMAIL PROTECTED]
> Sent: Mon 10-Sep-07 4:45 PM
> To: Ross Darnell; [email protected]
> Subject: SV: [R] lattice panel.lmline problem
>
> Why not use the more simple
>
> xyplot(total.fat~x|variable,groups=Group,
> data=tmp1,type=c("p","r"))
>
> ???
>
> See ?panel.xyplot and especially the type argument of that panel function.
[...]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.