I am new here in stackoverflow and also new in R. I have a question. How do you sort data using ggplot and geom_bar in descending order? Here is my code:
ggplot(actions) +geom_bar(mapping=aes(x=reorder(Actions,Actions,length))) +coord_flip() + ylab("Count") +xlab("Actions")
Here is the output. Would be very grateful for your help. Thank you!
aes(x=reorder(Actions, Actions, function(x)-length(x)))
– AK88