SSplot | R Documentation |
This function creates plots showing the "consumption" of residual sum of squares resulting from adding predictors to a model.
SSplot(
model1,
model2,
n = 1,
col1 = "gray50",
size1 = 0.6,
col2 = "navy",
size2 = 1,
col3 = "red",
size3 = 1,
...,
env = parent.frame()
)
model1 |
a linear model |
model2 |
a linear model, often using |
n |
an integer specifying how many times to regenerate
|
col1, col2, col3 |
Colors for the line segments in the plot |
size1, size2, size3 |
Sizes of the line segments in the plot |
... |
additional arguments (currently ignored) |
env |
an environment in which to evaluate the models. |
SSplot(
lm(strength ~ limestone + water, data = Concrete),
lm(strength ~ limestone + rand(7), data = Concrete),
n = 50)
## Not run:
SSplot(
lm(strength ~ water + limestone, data = Concrete),
lm(strength ~ water + rand(7), data = Concrete),
n = 1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.