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

🩹 Turn off size fallback from GeomBar #6281

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #4848.

Briefly, geom_bar() does not have the size aesthetic, but the 3.4.0 fallback mechanism generated an awkward scale when using stat = "sum". This turns off the fallback mechanism for this geom, but perhaps a larger conversation to be had is when the fallback should be turned off in general. Turning off the fallback also turns off the awkward legend that the issue was about in the first place.

@thomasp85
Copy link
Member

I think we are at the point were we can start a deprecation process. We already have deprecation warnings for default_aes to alert extension developers and 2 years in I think we can begin to make noise for the users

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 mentioned this pull request Jan 28, 2025
@teunbrand teunbrand merged commit a85c6a2 into tidyverse:main Jan 28, 2025
13 checks passed
@teunbrand teunbrand deleted the geom_bar_stat_sum branch January 28, 2025 12:18
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.

n legend with single value 1 when using geom_bar(stat = "sum")
2 participants