Skip to content

Trouble with 'smooth' using xyplot in lattice

2 messages · lost_river at excite.com, Felix Andrews

#
Peter,

The error message comes from panel.loess, which is the panel function
that draws the Loess smoothing line. It means one of your groups has
too few data points or is too clustered in its domain for the Loess
smoother to converge.

You could
- give up on the pretty-looking smoother
- increase the span; or
- ignore the error, with eg
  lattice.options = list(panel.error = "warning")

In any case I would recommend plotting the data points, not just the
smoothed lines. You can set type = c("p", "smooth")

-Felix


2008/12/22 lost_river at excite.com <lost_river at excite.com>: