powered by

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

coplot

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

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

NULL

vector giving horizontal coordinates.

vector giving vertical coordinates.

point color.

plotting character for points.

character expansion factor for points.

span for lowess smoother.

line width, default is 2.

2

function to compute coefficients of regression line, or FALSE for no line.

FALSE

if TRUE plot lowess smooth.

TRUE

other arguments to pass to functions lines and regLine.

lines

regLine

John Fox jfox@mcmaster.ca

coplot, regLine

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

Run the code above in your browser using DataLab