tidyverse / forcats

🐈🐈🐈🐈: tools for working with categorical variables (factors)
https://forcats.tidyverse.org/
Other
553 stars 126 forks source link

Better name / alias for `fct_reorder2()` #264

Open jennybc opened 4 years ago

jennybc commented 4 years ago

I'm a huge fan of fct_reorder2(), for the reasons highlighted here:

Gist: https://gist.github.com/jennybc/847c6b43c4e35cec2e5bb30a3f38af73

image

Maybe the under-appreciation for fct_reorder2() is partially due to its name? It doesn't really evoke what the function does.

I don't have a great alternative but something along the lines of fct_reorder_for_legend()?

ahcyip commented 4 years ago

Agreed, and I believe the names of the functions fct_relevel, fct_recode, fct_reorder all need some re-consideration. I discussed it in: https://github.com/tidyverse/forcats/issues/269

hadley commented 3 years ago

If it helps, you can think of the 2d as "2d"