Skip to content

Commit 12e61df

Browse files
nalimilanyutannihilationactions-user
authored
Clarify that span is only used for loess in stat_smooth (#4261)
* Clarify that span is only used for loess in stat_smooth It can be surprising that `span` argument has no effect when number of observations is large. * Change docstring in .r file * Apply suggestions from code review Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com> * Document Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com> Co-authored-by: GitHub Actions <actions@github.com>
1 parent b76fa96 commit 12e61df

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

R/stat-smooth.r

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#' @param level Level of confidence interval to use (0.95 by default).
2626
#' @param span Controls the amount of smoothing for the default loess smoother.
2727
#' Smaller numbers produce wigglier lines, larger numbers produce smoother
28-
#' lines.
28+
#' lines. Only used with loess, i.e. when `method = "loess"`,
29+
#' or when `method = NULL` (the default) and there are fewer than 1,000
30+
#' observations.
2931
#' @param n Number of points at which to evaluate smoother.
3032
#' @param method.args List of additional arguments passed on to the modelling
3133
#' function defined by `method`.

man/geom_smooth.Rd

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

0 commit comments

Comments
 (0)