Skip to content

Align stat_bin(drop) with meaning #6323

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
merged 4 commits into from
Mar 25, 2025
Merged

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.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

@teunbrand teunbrand merged commit 016b78f into tidyverse:main Mar 25, 2025
13 checks passed
@teunbrand teunbrand deleted the drop_arg branch March 25, 2025 12:49
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
2 participants