plot.evimp: Plot an evimp object (created by the evimp function)

Description Usage Arguments See Also Examples

View source: R/evimp.R

Description

Plot an evimp object.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'evimp'
plot(x = stop("no 'x' argument"),
    cex.var = 1,
    type.nsubsets = "l", col.nsubsets = "black", lty.nsubsets = 1,
    type.gcv = "l", col.gcv = 2, lty.gcv = 1,
    type.rss = "l", col.rss = "gray60", lty.rss = 1,
    cex.legend = 1, x.legend = nrow(x), y.legend = x[1,"nsubsets"],
    rh.col = 1, do.par = TRUE, ...)

Arguments

x

An evimp object.

cex.var

cex for variable names. Default is 1. Make smaller (say 0.8) if you have lots of variables.

type.nsubsets

Plot type for nsubsets graph. Default is "l". Use "n" for none, "b" looks good too.

col.nsubsets

Color of nsubsets line. Default is "black".

lty.nsubsets

Line type of nsubsets line. Default is 1.

type.gcv,col.gcv,lty.gcv

As above but for the gcv plot

type.rss,col.rss,lty.rss

As above but for the rss plot

cex.legend

cex for legend strings. Default is 1. Make smaller (say 0.8) if you want a smaller legend.

x.legend

x position of legend. Use 0 for no legend.

y.legend

y position of legend.

rh.col

Color of right hand axis label. Use rh.col=0 for no label, a workaround for when the label is mispositioned.

do.par

Call par() for global settings as appropriate. Default is TRUE, which sets
oma=c(bottom.margin,0,0,3), cex=cex.var.
Set to FALSE if you want to append figures to an existing plot.

...

Extra arguments passed to plotting functions.

See Also

earth, evimp, plot.earth.models, plotmo

Examples

1
2
3
4
5
data(ozone1)
earth.mod <- earth(O3 ~ ., data=ozone1, degree=2)
ev <- evimp(earth.mod)
plot(ev)
print(ev)

Example output

Loading required package: plotmo
Loading required package: plotrix
Loading required package: TeachingDemos
         nsubsets   gcv    rss
temp           11 100.0  100.0
humidity        9  35.7   38.9
ibt             7  31.7   34.0
doy             7  31.7   34.0
ibh             6  33.5>  36.1>
dpg             6  27.5   29.8
vis             5  21.5   24.2
wind            2  10.5   12.7
vh              1   5.7    7.9

earth documentation built on Oct. 23, 2020, 5:08 p.m.

Related to plot.evimp in earth...