Skip to content

Allow 'weight' to be dropped in stats - #5218

Merged
teunbrand merged 4 commits into
tidyverse:mainfrom
teunbrand:weight_warning
Mar 14, 2023
Merged

teunbrand merged 4 commits into
tidyverse:mainfrom
teunbrand:weight_warning

Conversation

@teunbrand

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

@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

@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