Skip to content

Align stat_bin(drop) with meaning - #6323

Merged
teunbrand merged 4 commits into
tidyverse:mainfrom
teunbrand:drop_arg
Mar 25, 2025
Merged

teunbrand merged 4 commits into
tidyverse:mainfrom
teunbrand:drop_arg

Conversation

@teunbrand

Copy link
Copy Markdown
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.

@thomasp85 thomasp85 left a comment

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.

LGTM

@teunbrand
teunbrand merged commit 016b78f into tidyverse:main Mar 25, 2025
@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