Skip to content

Commit 7572d09

Browse files
authored
Updated documentation: confidence intervals to confidence bands. Fixes #6025 (#6040)
1 parent c4c826a commit 7572d09

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

R/geom-smooth.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#' `predictdf()` generic and its methods. For most methods the standard
1010
#' error bounds are computed using the [predict()] method -- the
1111
#' exceptions are `loess()`, which uses a t-based approximation, and
12-
#' `glm()`, where the normal confidence interval is constructed on the link
12+
#' `glm()`, where the normal confidence band is constructed on the link
1313
#' scale and then back-transformed to the response scale.
1414
#'
1515
#' @eval rd_orientation()

R/stat-smooth.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
#' `y ~ poly(x, 2)`, `y ~ log(x)`. `NULL` by default, in which case
1919
#' `method = NULL` implies `formula = y ~ x` when there are fewer than 1,000
2020
#' observations and `formula = y ~ s(x, bs = "cs")` otherwise.
21-
#' @param se Display confidence interval around smooth? (`TRUE` by default, see
21+
#' @param se Display confidence band around smooth? (`TRUE` by default, see
2222
#' `level` to control.)
2323
#' @param fullrange If `TRUE`, the smoothing line gets expanded to the range of the plot,
2424
#' potentially beyond the data. This does not extend the line into any additional padding
2525
#' created by `expansion`.
2626
#' @param xseq A numeric vector of values at which the smoother is evaluated.
2727
#' When `NULL` (default), `xseq` is internally evaluated as a sequence of `n`
2828
#' equally spaced points for continuous data.
29-
#' @param level Level of confidence interval to use (0.95 by default).
29+
#' @param level Level of confidence band to use (0.95 by default).
3030
#' @param span Controls the amount of smoothing for the default loess smoother.
3131
#' Smaller numbers produce wigglier lines, larger numbers produce smoother
3232
#' lines. Only used with loess, i.e. when `method = "loess"`,
@@ -40,8 +40,8 @@
4040
#' .details = "`stat_smooth()` provides the following variables, some of
4141
#' which depend on the orientation:",
4242
#' "y|x" = "Predicted value.",
43-
#' "ymin|xmin" = "Lower pointwise confidence interval around the mean.",
44-
#' "ymax|xmax" = "Upper pointwise confidence interval around the mean.",
43+
#' "ymin|xmin" = "Lower pointwise confidence band around the mean.",
44+
#' "ymax|xmax" = "Upper pointwise confidence band around the mean.",
4545
#' "se" = "Standard error."
4646
#' )
4747
#' @export

man/geom_smooth.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)