The R Project SVN R

Rev

Rev 89683 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89683 Rev 89684
Line 21... Line 21...
21
     id.n = 3, labels.id = names(residuals(x)), cex.id = 0.75,
21
     id.n = 3, labels.id = names(residuals(x)), cex.id = 0.75,
22
     qqline = TRUE, cook.levels = c(0.5, 1.0),
22
     qqline = TRUE, cook.levels = c(0.5, 1.0),
23
     cook.col = 8, cook.lty = 2, cook.legendChanges = list(),
23
     cook.col = 8, cook.lty = 2, cook.legendChanges = list(),
24
     add.smooth = getOption("add.smooth"),
24
     add.smooth = getOption("add.smooth"),
25
     iter.smooth = if(isGlm) 0 else 3,
25
     iter.smooth = if(isGlm) 0 else 3,
-
 
26
     panel.raw = points,
26
     label.pos = c(4,2),
27
     label.pos = c(4,2),
27
     cex.caption = 1, cex.oma.main = 1.25
28
     cex.caption = 1, cex.oma.main = 1.25,
28
   , extend.ylim.f = 0.08
29
     extend.ylim.f = 0.08
29
   , panel.raw = points
-
 
30
     )
30
     )
31
}
31
}
32
\arguments{
32
\arguments{
33
  \item{x}{\code{lm} object, typically result of \code{\link{lm}} or
33
  \item{x}{\code{lm} object, typically result of \code{\link{lm}} or
34
    \code{\link{glm}}.}
34
    \code{\link{glm}}.}
Line 48... Line 48...
48
    6, the j-th entry corresponding to \code{which[j]}, see also the
48
    6, the j-th entry corresponding to \code{which[j]}, see also the
49
    default vector in \sQuote{Usage}.  Can be set to
49
    default vector in \sQuote{Usage}.  Can be set to
50
    \code{""} or \code{NA} to suppress all captions.
50
    \code{""} or \code{NA} to suppress all captions.
51
  }
51
  }
52
  \item{panel}{panel function for plotting points. This will by default 
52
  \item{panel}{panel function for plotting points. This will by default 
53
    add a smothing curve via  
53
    add a smoothing curve via  
54
     \code{\link{panel.smooth}}
54
     \code{\link{panel.smooth}}
55
    if \code{add.smooth = TRUE} and use \code{panel.raw} (which by
55
    if \code{add.smooth = TRUE} and use \code{panel.raw} (which by
56
    default is \code{\link{points}}) instead. For the residuals vs 
56
    default is \code{\link{points}}) otherwise. For the residuals vs 
57
    leverage plot, the smooth makes little sense and 
57
    leverage plot, the smooth makes little sense and 
58
    \code{panel.raw} is used.}
58
    \code{panel.raw} is used.}
59
  \item{sub.caption}{common title---above the figures if there are more
59
  \item{sub.caption}{common title---above the figures if there are more
60
    than one; used as \code{sub} (s.\code{\link{title}}) otherwise.  If
60
    than one; used as \code{sub} (s.\code{\link{title}}) otherwise.  If
61
    \code{NULL}, as by default, a possible abbreviated version of
61
    \code{NULL}, as by default, a possible abbreviated version of
Line 87... Line 87...
87
    \code{iter} in \code{\link{panel.smooth}()}; the default uses no such
87
    \code{iter} in \code{\link{panel.smooth}()}; the default uses no such
88
    iterations for \code{\link{glm}} fits which is
88
    iterations for \code{\link{glm}} fits which is
89
    particularly desirable for the (predominant) case of binary
89
    particularly desirable for the (predominant) case of binary
90
    observations, but also for other models where the response
90
    observations, but also for other models where the response
91
    distribution can be highly skewed.}
91
    distribution can be highly skewed.}
-
 
92
  \item{panel.raw}{a function to use for plots without a smoother.}
92
  \item{label.pos}{positioning of labels, for the left half and right
93
  \item{label.pos}{positioning of labels, for the left half and right
93
    half of the graph respectively, for plots 1-3, 5, 6.}
94
    half of the graph respectively, for plots 1-3, 5, 6.}
94
  \item{cex.caption}{controls the size of \code{caption}.}
95
  \item{cex.caption}{controls the size of \code{caption}.}
95
  \item{cex.oma.main}{controls the size of the \code{sub.caption} only if
96
  \item{cex.oma.main}{controls the size of the \code{sub.caption} only if
96
    that is \emph{above} the figures when there is more than one.}
97
    that is \emph{above} the figures when there is more than one.}
97
  \item{extend.ylim.f}{a numeric vector of length 1 or 2, to be used in
98
  \item{extend.ylim.f}{a numeric vector of length 1 or 2, to be used in
98
    \code{ylim <- \link{extendrange}(r=ylim, f = *)}
99
    \code{ylim <- \link{extendrange}(r=ylim, f = *)}
99
    for plots \code{1} and \code{5} when \code{id.n} is non-empty.}
100
    for plots \code{1} and \code{5} when \code{id.n} is non-empty.}
100
  \item{panel.raw}{a function to use for plots without a smoother.}
-
 
101
}
101
}
102
\description{
102
\description{
103
  Six plots (selectable by \code{which}) are currently available: a plot
103
  Six plots (selectable by \code{which}) are currently available: a plot
104
  of residuals against fitted values, a Scale-Location plot of
104
  of residuals against fitted values, a Scale-Location plot of
105
  \eqn{\sqrt{| residuals |}}{sqrt(| residuals |)}
105
  \eqn{\sqrt{| residuals |}}{sqrt(| residuals |)}