panel.lm: panel containing xy plot and linear model fit line

Description Usage Arguments Value Author(s) See Also Examples

Description

panel, for use with pairs, containing xy plot and linear model fit line.

Usage

1
2
  panel.lm(x, y, lty = "solid", col = par("col"), bg = NA,
    pch = par("pch"), cex = 1, col.lm = "red", ...)

Arguments

x

numeric vectors of the same length

y

numeric vectors of the same length

col

see par

bg

see par

pch

see par

cex

see par

col.smooth

color to be used by lines for drawing the smooths.

span

smoothing parameter f for lowess, see there.

iter

number of robustness iterations for lowess.

col.lm

the colour of the linear model line

...

arguments to control the appearance of the line, passed to abline

Value

none.

Author(s)

Mark Cowley, 2012-06-27

See Also

panel.smooth pairs

Examples

1
2
pairs(swiss, panel = panel.lm, pch = ".")
pairs(swiss, panel = panel.lm, lwd = 2, cex= 1.5, col="blue")# hmm...

drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.