Skip to content

don't drop ordering from ordinal factors - #3710

Merged
thomasp85 merged 2 commits into
tidyverse:v3.3.0-rcfrom
thomasp85:ordered-col
Jan 9, 2020
Merged

thomasp85 merged 2 commits into
tidyverse:v3.3.0-rcfrom
thomasp85:ordered-col

Conversation

@thomasp85

Copy link
Copy Markdown
Member

When I wrote out ply, I inadvertently dropped support for ordered factors. This is such a niche data structure that it didn't set of any alarms, but I noticed it when I wanted stat_contour_filled() to return levels as ordered.

This PR fixes the regression by not converting ordered factors into factors when binding data.frames

@thomasp85 thomasp85 added this to the ggplot2 3.3.0 milestone Jan 8, 2020
@thomasp85
thomasp85 requested a review from clauswilke January 8, 2020 20:52
@clauswilke

Copy link
Copy Markdown
Member

Can you add a unit test for this case?

@thomasp85

Copy link
Copy Markdown
Member Author

sure thing 🙂

@thomasp85
thomasp85 merged commit 758bc59 into tidyverse:v3.3.0-rc Jan 9, 2020
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.

2 participants