问题
This is an exmaple of fct_reorder
boxplot(Sepal.Width ~ fct_reorder(Species, Sepal.Width, .desc = TRUE), data = iris)
This code is identical with boxplot(Sepal.Width ~ reorder(Species, -Sepal.Width), data = iris)
What is the better point fct_reorder()
than reorder()
?
来源:https://stackoverflow.com/questions/51378506/difference-of-fct-reorder-and-reorder