avPlots(model, terms= ~ ., intercept=FALSE, layout=NULL, ask, main, ...)
avp(...)
avPlot(model, ...)
## S3 method for class 'lm':
avPlot(model, variable,
id.method = list(abs(residuals(model, type="pearson")), "x"),
labels,
id.n= if(id.method[1]=="identify") Inf else 0,
id.cex=1, id.col=palette()[1],
col = palette()[2], col.lines = col[1],
xlab, ylab, pch = 1, lwd = 2,
main="Added-variable Plot", grid=TRUE, ...)
## S3 method for class 'glm':
avPlot(model, variable,
id.method = list(abs(residuals(model, type="pearson")), "x"),
labels,
id.n=if(id.method[1]=="identify") Inf else 0,
id.cex=1, id.col=palette()[1],
col = palette()[2], col.lines = col[1],
xlab, ylab, pch = 1, lwd = 2, type=c("Wang", "Weisberg"),
main="Added-variable Plot", grid=TRUE, ...)
lm
or glm
.terms = ~.-X3
would plot against all terms
except for X3
. If this argument is a qFALSE
.c(1,1)
or c(4,3)
, the layout
of the graph will have this many rows and columns. If not set, the program will
select an appropriate layout. If the number of graphs exceed nine, you must
select thTRUE
, ask the user before drawing the next plot; if FALSE
don't ask.avPlots
passes these arguments to avPlot
.
avPlot
passes them to plot
.id.n=0
for labeling no points. See
showLabels
for details of these arguments.1
(a circle, see par
).2
(see par
)."Wang"
use the method of Wang (1985);
if "Weisberg"
use the method in the Arc software associated with
Cook and Weisberg (1999)NULL
. These functions are used for their side effect: producing
plots.avPlots
(for which avp
is an abbreviation).residualPlots
, crPlots
, ceresPlots
,avPlots(lm(prestige~income+education+type, data=Duncan))
avPlots(glm(partic != "not.work" ~ hincome + children,
data=Womenlf, family=binomial))
Run the code above in your browser using DataLab