Skip to content

Drop empty groups from bar width calculation - #5633

Merged
teunbrand merged 1 commit into
tidyverse:rc/3.5.0from
teunbrand:bar_split_drop
Jan 12, 2024
Merged

teunbrand merged 1 commit into
tidyverse:rc/3.5.0from
teunbrand:bar_split_drop

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

This PR aims to fix #5632.

As the title suggests, this PR adds a drop = TRUE to a split() that could return a list with 0-length elements in it. With drop = TRUE, those 0-length elements are absent and the calculation proceeds without warnings.

@teunbrand teunbrand added this to the ggplot2 3.5.0 milestone Jan 8, 2024

@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 5bfecd2 into tidyverse:rc/3.5.0 Jan 12, 2024
@teunbrand
teunbrand deleted the bar_split_drop branch January 12, 2024 09:31
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.

2 participants