powered by
Plot the partial regression plot for one of the predictors of a linear model
lmPartReg(mod, pred, ...)
A partial regression plot for pred in the linear model mod
pred
mod
A linear model object (obtained via the lm function)
The name (in quotes) of the predictor for which the plot should be produced
Any other arguments to be passed to the plot
lmod=lm(mpg~.,mtcars) lmPartReg(lmod,"wt")
Run the code above in your browser using DataLab