I used fct_infreq() to reorder mpg's model factor levels by frequency.
However, the provided code results in a plot where the factor with least counts will appear at the top of the plot. I would like to have it the opposite way, so that the most frequent factor will appear at the top. Is there a way to do that?
ggplot(mpg) +
geom_bar(mapping = aes(x = fct_infreq(model))) +
coord_flip()
