Skip to content

Commit

Permalink
Tweaks to stat_smooth docs, thanks to @wch
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Dec 21, 2011
1 parent 62927fb commit cbd7401
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions R/stat-smooth.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
#' Calculation is performed by the (currently undocumented)
#' \code{predictdf} generic function and its methods. For most methods
#' the confidence bounds are computed using the \code{\link{predict}}
#' method - the exception is for \code{loess} which uses a t-based
#' appromxiation
#' method - the exceptions are \code{loess} which uses a t-based
#' approximation, and for \code{glm} where the normal confidence interval
#' is constructed on the link scale, and then back-transformed to the response
#' scale.
#'
#' @param method smoothing method (function) to use, eg. lm, glm, gam, loess,
#' rlm
Expand Down
7 changes: 5 additions & 2 deletions man/stat_smooth.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
Calculation is performed by the (currently undocumented)
\code{predictdf} generic function and its methods. For
most methods the confidence bounds are computed using the
\code{\link{predict}} method - the exception is for
\code{loess} which uses a t-based appromxiation
\code{\link{predict}} method - the exceptions are
\code{loess} which uses a t-based approximation, and for
\code{glm} where the normal confidence interval is
constructed on the link scale, and then back-transformed
to the response scale.
}
\examples{
c <- ggplot(mtcars, aes(qsec, wt))
Expand Down

0 comments on commit cbd7401

Please sign in to comment.