The R Project SVN R

Rev

Rev 61160 | Rev 70615 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/stats/man/plot.ppr.Rd
2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2007 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
27464 ripley 6
% file modreg/man/plot.ppr.Rd
7
% copyright (C) 1995-8 B. D. Ripley
8
%
9
\name{plot.ppr}
56186 murdoch 10
\alias{plot.ppr}
27464 ripley 11
\title{
12
Plot Ridge Functions for Projection Pursuit Regression Fit
13
}
14
\description{
15
Plot ridge functions for projection pursuit regression fit.
16
}
17
\usage{
18
\method{plot}{ppr}(x, ask, type = "o", \dots)
19
}
20
\arguments{
21
  \item{x}{
22
    A fit of class \code{"ppr"} as produced by a call to \code{ppr}.
23
  }
24
  \item{ask}{
25
    the graphics parameter \code{ask}: see \code{par} for details.
26
    If set to \code{TRUE} will ask between the plot of each cross-section.
27
  }
28
  \item{type}{
29
    the type of line to draw
30
  }
31
  \item{\dots}{
32
    further graphical parameters
33
  }
34
}
35
\value{
36
  None
37
}
38
\section{Side Effects}{
39
  A series of plots are drawn on the current graphical device, one for
40
  each term in the fit.
41
}
42
\seealso{
43
  \code{\link{ppr}}, \code{\link{par}}
44
}
45
\examples{
41508 ripley 46
require(graphics)
47
 
37838 ripley 48
with(rock, {
27464 ripley 49
area1 <- area/10000; peri1 <- peri/10000
61168 ripley 50
par(mfrow = c(3,2)) # maybe: , pty = "s")
27464 ripley 51
rock.ppr <- ppr(log(perm) ~ area1 + peri1 + shape,
52
                data = rock, nterms = 2, max.terms = 5)
61160 ripley 53
plot(rock.ppr, main = "ppr(log(perm)~ ., nterms=2, max.terms=5)")
54
plot(update(rock.ppr, bass = 5), main = "update(..., bass = 5)")
55
plot(update(rock.ppr, sm.method = "gcv", gcvpen = 2),
27464 ripley 56
     main = "update(..., sm.method=\"gcv\", gcvpen=2)")
37838 ripley 57
})
27464 ripley 58
}
59
\keyword{hplot}