plot.earth.models {earth} | R Documentation |
Compare earth models by plotting them.
Description
Compare earth
models by plotting them.
Usage
## S3 method for class 'earth.models'
plot(x = stop("no 'x' argument"), which = c(1:2),
caption = "", jitter = 0,
col.grsq = discrete.plot.cols(length(objects)), lty.grsq = 1,
col.rsq = 0, lty.rsq = 5,
col.vline = col.grsq, lty.vline = "12",
col.npreds = 0, lty.npreds = 2,
legend.text = NULL, do.par = NULL, trace = 0,
...)
Arguments
x |
A list of one or more |
which |
Which plots to plot: 1 model, 2 cumulative distribution of residuals.
Default is |
caption |
Overall caption. Values: |
jitter |
Jitter applied to GRSq and RSq values to minimize over-plotting.
Default is |
col.grsq |
Vector of colors for the GRSq plot.
The default is |
lty.grsq |
Line type for the GRSq plot.
Default is |
col.rsq |
Vector of colors for the RSq plot.
Default is |
lty.rsq |
Line type for the RSq plot.
Default is |
col.vline |
A vertical line is drawn for each object
to show which model size was chosen for that object.
The color of the line is |
lty.vline |
Line type of vertical lines (a vertical line is drawn to show the selected model for each object).
Can be a vector.
Default is |
col.npreds |
Vector of colors for the "number of predictors" plot within the model selection plot.
Default is |
lty.npreds |
Line type of the "number of predictors" plot (in the Model Selection plot).
Default is |
legend.text , do.par , trace |
Please see |
... |
Please see |
Note
This function ignores GLM and cross-validation components of the earth model, if any.
See Also
earth
,
plot.earth
,
plot.earth.models
,
plotd
,
plotmo
Examples
data(ozone1)
a1 <- earth(O3 ~ ., data = ozone1, degree = 2)
a2 <- earth(O3 ~ .-wind, data = ozone1, degree = 2)
a3 <- earth(O3 ~ .-humidity, data = ozone1, degree = 2)
plot.earth.models(list(a1,a2,a3), ylim=c(.65,.85))