-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Implement filled 2d density contours #3864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
clauswilke
merged 18 commits into
tidyverse:master
from
wilkelab:issue-3846-stat-density-2d
Mar 12, 2020
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5829b84
initial implementation idea; still tons of stuff to do
clauswilke bee68db
geom_density2d_filled, doesn't work yet
clauswilke e430958
fix geom_density2d_filled()
clauswilke ec6212e
fix unit test
clauswilke 5a011ae
update usage examples
clauswilke 8bf564e
improve documentation
clauswilke 7b5077c
add news item, allow manual setting of breaks, add nlevel column to c…
clauswilke c235a4d
compute density scaled to samle size, just like in geom_density().
clauswilke fab9732
Make `level` numeric for filled contours. Fixes #3875.
clauswilke bec3b2e
Document computed variables.
clauswilke 6546535
properly contour in a two-step process
clauswilke e3809db
cleanup, better docs
clauswilke 0bf1261
clean-up code, docs
clauswilke 743bad0
unit tests
clauswilke d147a92
add a proper `stat_density_2d_filled()`. Closes #3846.
clauswilke e00b04a
update news
clauswilke e199f9d
fix unit tests
clauswilke adf655a
keep track of the type of contour needed rather than the stat that do…
clauswilke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this? Do we have any precedence for creating ggproto aliases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to auto-generate documentation for aesthetics. We probably should do it more consistently across ggplot2. See here:
https://github.com/clauswilke/ggplot2/blob/743bad010638fdccaed4c0cfa0258e0879e1263c/R/geom-density2d.r#L9-L10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah... that seems bad, but is not really the fault of this PR