Skip to content

Commit 9715b27

Browse files
committed
Improved stat_function() documentation #3362
1 parent 75bcb56 commit 9715b27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/stat-function.r

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
#' The function is called with a grid of evenly spaced values along the x axis,
55
#' and the results are drawn (by default) with a line.
66
#'
7+
#'
8+
#'
79
#' @eval rd_aesthetics("stat", "function")
810
#' @param fun Function to use. Either 1) an anonymous function in the base or
911
#' rlang formula syntax (see [rlang::as_function()])
1012
#' or 2) a quoted or character name referencing a function; see examples. Must
1113
#' be vectorised.
1214
#' @param n Number of points to interpolate along
13-
#' @param args List of additional arguments to pass to `fun`
15+
#' @param args List of additional arguments passed on to the function defined by `fun`.
1416
#' @param xlim Optionally, restrict the range of the function to this range.
1517
#' @inheritParams layer
1618
#' @inheritParams geom_point

0 commit comments

Comments
 (0)