library(nomiShape)
The ranked_barplot() function creates a bar plot for a nominal variable, ordering categories from the most frequent to the least frequent.
ranked_barplot()
# Example usage of ranked_barplot ranked_barplot(categories, "animal")