plot.varmod | R Documentation |
Plot a variance model (a varmod
object).
Typically you call this function for a variance model
embedded in an earth
model.
## S3 method for class 'varmod'
plot(x = stop("no 'x' argument"), which = 1:4,
do.par = NULL, info=FALSE,
cex = NULL, caption = NULL,
line.col = 2, min.sd.col = line.col,
trace = 0, ...)
x |
A |
which |
Which plots to plot. Default is 1:4 meaning all.
The term parent below refers to the |
do.par |
Please see |
info |
Plot some additional information, including lowess fits in the first two plots. |
cex |
Character expansion. |
caption |
Default is NULL, meaning automatically generate an overall caption. |
line.col |
Color of lines in the plots.
Default is |
min.sd.col |
Color of the |
trace , ... |
Similar to |
The horizontal red dotted line in the first two plots
shows the value of min.sd
.
See earth
's varmod.clamp
argument.
varmod
data(ozone1)
set.seed(1) # optional, for cross validation reproducibility
# note: should really use ncross=30 below but for a quick demo we don't
earth.mod <- earth(O3~temp, data=ozone1, nfold=10, ncross=3, varmod.method="lm")
plot(earth.mod$varmod) # plot the embedded variance model (this calls plot.varmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.