install.packages("forcats") library(forcats) # fct_infreq : factor의 갯수별로 내림차순으로 정렬한다. ggplot(data=mpg, aes(x=forcats::fct_infreq(class))) + geom_bar() 결과 geom_col()방식은 안됨 참고 github.com/mjhendrickson/Learning-R/issues/5 Reorder geom_bar based on count · Issue #5 · mjhendrickson/Learning-R Determine best way to reorder output of geom_bar to plot descending based on count. Need a way to do this tha..