component.residual | R Documentation |
Component + Residual plot for a term in a lm
model.
component.residual(lm.obj, which = 1, xlab = "Component",
ylab = "C+R")
lm.obj |
A |
which |
numeric code for the term in the |
xlab |
label for the x-axis |
ylab |
label for the y-axis |
A scatterplot with a smooth curve overlaid.
J.H. Maindonald
lm
mice12.lm <- lm(brainwt ~ bodywt + lsize, data=litters)
oldpar <- par(mfrow = c(1,2))
component.residual(mice12.lm, 1, xlab = "Body weight", ylab= "t(Body weight) + e")
component.residual(mice12.lm, 2, xlab = "Litter size", ylab= "t(Litter size) + e")
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.