Learn R Programming

car (version 0.8-1)

panel.car: Panel Function Coplots

Description

a panel function for use with coplot that plots points, a lowess line, and a regression line.

Usage

panel.car(x, y, col, pch, cex=1, span=0.5, lwd=2, 
  regression.line=lm, lowess.line=T, ...)

Arguments

x
vector giving horizontal coordinates.
y
vector giving vertical coordinates.
col
point color.
pch
plotting character for points.
cex
character expansion factor for points.
span
span for lowess smoother.
lwd
line width, default is 2.
regression.line
function to compute coefficients of regression line, or FALSE for no line.
lowess.line
if TRUE plot lowess smooth.
...
other arguments to pass to functions lines and reg.line.

Value

  • NULL. This function is used for its side effect: producing a panel in a coplot.

See Also

coplot, reg.line

Examples

Run this code
data(Prestige)
coplot(prestige~income|education, panel=panel.car, 
  col="red", data=Prestige)

Run the code above in your browser using DataLab