Skip to content

mapped_discrete has resolution of 1 #5247

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

Merged
merged 5 commits into from
Mar 26, 2023
Merged

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5211.

It does so by having resolution() consider the mapped_discrete class as it does integers, where the resolution is set to 1.
I've added some tests so that it becomes easier to see if resolution() breaks in the future.

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 merged commit d7f2241 into tidyverse:main Mar 26, 2023
@teunbrand teunbrand deleted the resolution branch March 26, 2023 11:37
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.

different widths in bar plot when using undropped factor levels
2 participants