diff --git a/R/geom-function.R b/R/geom-function.R index 98fba891fc..30b58d8426 100644 --- a/R/geom-function.R +++ b/R/geom-function.R @@ -32,6 +32,8 @@ #' #' base + stat_function(fun = dnorm, geom = "point", n = 20) #' +#' base + stat_function(fun = dnorm, geom = "polygon", color = "blue", fill = "blue", alpha = 0.5) +#' #' base + geom_function(fun = dnorm, n = 20) #' #' # Two functions on the same plot diff --git a/man/geom_function.Rd b/man/geom_function.Rd index bcc0d61538..053808f93f 100644 --- a/man/geom_function.Rd +++ b/man/geom_function.Rd @@ -130,6 +130,8 @@ base + stat_function(fun = dnorm, geom = "point") base + stat_function(fun = dnorm, geom = "point", n = 20) +base + stat_function(fun = dnorm, geom = "polygon", color = "blue", fill = "blue", alpha = 0.5) + base + geom_function(fun = dnorm, n = 20) # Two functions on the same plot