plot.earth.models {earth} | R Documentation |
Compare earth
models by plotting them.
## S3 method for class 'earth.models' plot(x = stop("no 'x' arg"), which = c(1:2), caption = "", jitter = 0, col.grsq = discrete.plot.cols(length(x)), lty.grsq = 1, col.rsq = 0, lty.rsq = 5, col.vline = col.grsq, lty.vline = 3, col.npreds = 0, lty.npreds = 2, col.sel.grid = 0, ylim = c(0,1), col.legend = 1, cex.legend = NULL, legend.pos = NULL, legend.text = NULL, col.cum = NULL, do.par = TRUE, main = "Model Comparison", rlim = NA, ...)
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 |
col.sel.grid |
Color of grid lines in the Model Selection graph.
Default is |
ylim |
Two element vector |
col.legend |
Default is |
cex.legend |
Legend cex. Default is NULL, meaning choose automatically. |
legend.pos |
Legend position.
Default |
legend.text |
Vector of strings to use as legend text.
The special value |
col.cum |
Vector of colors for the cumulative distribution plot.
The special value |
do.par |
Call |
main |
Title of each plot.
Default is |
rlim |
Deprecated. Please use |
... |
Extra arguments passed to plotting functions. |
This function ignores GLM and cross-validation components of the earth model, if any.
earth
,
plot.earth
,
plot.earth.models
,
plotd
,
plotmo
data(ozone1) a1 <- earth(O3 ~ ., data = ozone1, degree = 2) a2 <- earth(O3 ~ .-wind, data = ozone1, degree = 2, nk = 31) a3 <- earth(O3 ~ .-humidity, data = ozone1, degree = 2, nk = 31) plot.earth.models(list(a1,a2,a3), ylim=c(.6,.8))