Learn R Programming

smallstuff (version 1.0.3)

lmPartReg: Partial Regression Plot

Description

Plot the partial regression plot for one of the predictors of a linear model

Usage

lmPartReg(mod, pred, ...)

Value

A partial regression plot for pred in the linear model mod

Arguments

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

Examples

Run this code
lmod=lm(mpg~.,mtcars)
lmPartReg(lmod,"wt")

Run the code above in your browser using DataLab