Ranked Bar Plots for Nominal Variables

library(nomiShape)

Ranked Bar Plots

The ranked_barplot() function creates a bar plot for a nominal variable, ordering categories from the most frequent to the least frequent.

# Example usage of ranked_barplot
ranked_barplot(categories, "animal")