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

Facets drop 'ordered' class #5704

Merged
merged 3 commits into from
Apr 2, 2024
Merged

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5666.

Briefly, when facets call as.factor() on the facetting variables, they now do so with dropping the 'ordered' class.
The ordered class has no special meaning for facets, as factors will appear in order of their levels attribute regardless of whether it is an ordered factor or unordered factor. Therefore, this PR proposes to just drop the ordered class as it has been giving us some grief before, i.e. #5109.

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 e8b62f6 into tidyverse:main Apr 2, 2024
12 checks passed
@teunbrand teunbrand deleted the facets_ordered branch April 2, 2024 08:45
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.

facet_grid with ordered factors and drop = FALSE causes deprecation warning
2 participants