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

Resolves #168: reorder_within multiple variables #170

Merged
merged 6 commits into from
May 1, 2020

Conversation

tmastny
Copy link
Contributor

@tmastny tmastny commented May 1, 2020

Good evening! I'm making the change discussed here: #168 (comment).

This PR will change the within parameter of reorder_within to allow a list of vectors, so you can properly reorder factors when faceting by multiple variables. This change should not be breaking.

I added two tests, following the format of the existing ones. For the vdiffr test, I added a graph that required reordering within multiple variables to be ordered correctly within each facet.

I ran the tests and R CMD Check locally and everything passed.

Let me know if there is anything else you'd like to see.

Thanks for the great package!

@juliasilge juliasilge merged commit 07417b5 into juliasilge:master May 1, 2020
@juliasilge
Copy link
Owner

Thank you so much @tmastny; looks fantastic! 🙏

@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants