Skip to content

Update missing value warning - #5269

Merged
teunbrand merged 3 commits into
tidyverse:mainfrom
teunbrand:missing_value_warning
Apr 21, 2023
Merged

teunbrand merged 3 commits into
tidyverse:mainfrom
teunbrand:missing_value_warning

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

This PR aims to fix #5250.

Briefly, it updates the warning message that is omitted by Geom$handle_na() and their kin to read:

#> Warning message:
#> Removed 10 rows containing missing or excluded values (`stat_boxplot()`). 

Where the 'or excluded' is new. This is to better reflect that values might have been excluded by the out-of-bounds functions, in addition to being properly missing.

@thomasp85

Copy link
Copy Markdown
Member

Is "excluded" the right word here? We want to mainly make people aware of the possibility that the scale is removing them so I wonder if we can make that even more clear...

Maybe something along these lines? @clauswilke and @batpigandme do you have any input on how to make it read clearly?

#> Warning message:
#> Removed 10 rows containing missing values or values outside the scale range (`stat_boxplot()`). 

@batpigandme

Copy link
Copy Markdown
Member

I like your suggestion, @thomasp85, since "excluded" could be a bit ambiguous.

@clauswilke

Copy link
Copy Markdown
Member

Agreed. The latest version looks good.

@teunbrand

Copy link
Copy Markdown
Collaborator Author

Thanks for the input folks. I've updated the message as suggested.

@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 89a7613 into tidyverse:main Apr 21, 2023
@teunbrand
teunbrand deleted the missing_value_warning branch April 21, 2023 16:09
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 from geom about missing values when scale sets limits, unless data is filtered first

4 participants