Skip to content
Prev 124192 / 398500 Next

lattice panel.lmline problem

On 9/10/07, Ross Darnell <r.darnell at uq.edu.au> wrote:
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
[...]