Panel Function for Coplots
panel.car.Rda panel function for use with coplot that plots points, a lowess line,
and a regression line.
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.- reg.line
function to compute coefficients of regression line, or
FALSEfor no line.- lowess.line
if
TRUEplot lowess smooth.- ...
other arguments to pass to functions
linesandregLine.
Author
John Fox jfox@mcmaster.ca
Examples
coplot(prestige ~ income|education, panel=panel.car,
col="red", data=Prestige)