lmPartReg | R Documentation |
Plot the partial regression plot for one of the predictors of a linear model
lmPartReg(mod, pred, ...)
mod |
A linear model object (obtained via the lm function) |
pred |
The name (in quotes) of the predictor for which the plot should be produced |
... |
Any other arguments to be passed to the plot |
A partial regression plot for pred
in the linear model
mod
lmod=lm(mpg~.,mtcars)
lmPartReg(lmod,"wt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.