Skip to content

Commit aaaec2f

Browse files
authored
Add example showing how to use the fill argument in stat_function() (#4420)
1 parent cad7f78 commit aaaec2f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

R/geom-function.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#'
3333
#' base + stat_function(fun = dnorm, geom = "point", n = 20)
3434
#'
35+
#' base + stat_function(fun = dnorm, geom = "polygon", color = "blue", fill = "blue", alpha = 0.5)
36+
#'
3537
#' base + geom_function(fun = dnorm, n = 20)
3638
#'
3739
#' # Two functions on the same plot

man/geom_function.Rd

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

0 commit comments

Comments
 (0)