abhiamishra / ggshakeR

An analysis and visualization R package that works with publicly available soccer data
https://abhiamishra.github.io/ggshakeR/
MIT License
113 stars 14 forks source link

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

Closed harshkrishna17 closed 2 years ago

harshkrishna17 commented 2 years ago

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

harshkrishna17 commented 2 years ago

Fix using dplyr

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