Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/geom-function.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#'
#' base + stat_function(fun = dnorm, geom = "point", n = 20)
#'
#' base + stat_function(fun = dnorm, geom = "density", color = "blue", fill = "blue", alpha = 0.5)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason why not using geom = "polygon" - it seems more general...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, no specific reason. geom = "density" seemed a little bit more intuitive since the example is about plotting a probability density function. But I have no strong feelings on this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

#'
#' base + geom_function(fun = dnorm, n = 20)
#'
#' # Two functions on the same plot
Expand Down
2 changes: 2 additions & 0 deletions man/geom_function.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.