panel
function to be used as
argument in e.g., coplot
or pairs
.
panel.smooth(x, y, col = par("col"), bg = NA, pch = par("pch"), cex = 1, col.smooth = "red", span = 2/3, iter = 3, ...)
lines
for drawing the
smooths.f
for lowess
, see
there.lowess
.lines
.coplot
and pairs
where panel.smooth
is typically used;
lowess
which does the smoothing.
pairs(swiss, panel = panel.smooth, pch = ".") # emphasize the smooths
pairs(swiss, panel = panel.smooth, lwd = 2, cex = 1.5, col = "blue") # hmm...
Run the code above in your browser using DataLab