Skip to content
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

Align stat_bin(drop) with meaning #6323

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

teunbrand
Copy link
Collaborator

This PR amends #6212 and also fixes #5118.

Briefly, #6212 repurposed the keep.zeroes argument to drop, but I forgot to invert the logic as well. This PR ensures that the interpretation is consistent and that drop = TRUE removes empty bins and drop = FALSE keeps them.
The fix for #5118 comes from being able to control the warning at the root of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect warning about clipping after adding wide xlim values to geom_histogram
1 participant