Skip to content

mapped_discrete has resolution of 1 - #5247

Merged
teunbrand merged 5 commits into
tidyverse:mainfrom
teunbrand:resolution
Mar 26, 2023
Merged

teunbrand merged 5 commits into
tidyverse:mainfrom
teunbrand:resolution

Conversation

@teunbrand

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

@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 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