Plot Ridge Functions for Projection Pursuit Regression Fit
DESCRIPTION:
This plots the cross-sections of the ridge functions making up a
projection pursuit regression fit.
USAGE:
plot.ppr(fit, ask, type="o", ...)
REQUIRED ARGUMENTS:
- fit
-
A fit of class
"ppr"
as produced by a call to
ppr
.
OPTIONAL ARGUMENTS:
- ask
-
the graphics parameter
ask
: see
par
for details. If set to
True
will ask between the plot of each cross-section.
- type
-
the type of line to draw
- ...
-
further graphical parameters
SIDE EFFECTS:
A series of plots are drawn on the current graphical device, one for
each term in the fit.
SEE ALSO:
,
EXAMPLES:
attach(rock)
area1 <- area/10000; peri1 <- peri/10000
rock.ppr <- ppr(log(perm) ~ area1 + peri1 + shape,
data=rock, nterms=2, max.terms=5)
par(mfrow=c(1,2), pty="s")
plot(rock.ppr)
plot(update(rock.ppr, bass=5))
plot(update(rock.ppr, sm.method="gcv", gcvpen=2))