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

Fix plot_pizza() plot issue reorder() not working like fct_reorder() #78

Closed
harshkrishna17 opened this issue Jun 23, 2022 · 1 comment
Closed
Assignees

Comments

@harshkrishna17
Copy link
Collaborator

Find a replacement function within the available dependencies/base for the fct_reorder() function from {forcats}

@harshkrishna17 harshkrishna17 self-assigned this Jun 27, 2022
@harshkrishna17
Copy link
Collaborator Author

Fix using dplyr

data_selected <- data_selected %>%
      arrange(desc(stat), desc(Percentile)) %>%
      mutate(Statistic = factor(Statistic, levels = Statistic))

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

No branches or pull requests

1 participant