R/panel.smooth_cor.plot.R

panel.smooth=function (x, y, col = par("col"), bg = NA, pch = par("pch"),
          cex = 1, col.smooth = "red", span = 2/3, iter = 3, ...)
{
  points(x, y, pch = pch, col = col, bg = bg, cex = cex)
  ok <- is.finite(x) & is.finite(y)
  if (any(ok))
    lines(stats::lowess(x[ok], y[ok], f = span, iter = iter),
          col = col.smooth, ...)
}
filBe87/PKUss documentation built on June 29, 2019, 12:12 a.m.