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

Allow 'weight' to be dropped in stats #5218

Merged
merged 4 commits into from
Mar 14, 2023

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5216.

Briefly, in several stats, warnings were emitted when the 'weight' aesthetic was used. However, the weight aesthetic is meant to be dropped, so we register them as such.

In essence, the problem is the same as in #5053, so the proposed remedy is the same as in #5071, but applied to more stats.

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

@thomasp85 thomasp85 added this to the ggplot2 3.4.2 milestone Mar 13, 2023
@teunbrand teunbrand merged commit f139f40 into tidyverse:main Mar 14, 2023
@teunbrand teunbrand deleted the weight_warning branch March 14, 2023 21:56
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.

geom_bin_2d: warning message when using weight without group
2 participants