Ranked Dot Plots for Nominal Variables

library(nomiShape)

Ranked Dot Plots

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

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

# Example with connecting line
ranked_dotplot(categories, "animal", connect = TRUE)

# Example with percent scale
ranked_dotplot(mpg, "manufacturer", scale = "percent")

ranked_dotplot(mpg, "manufacturer", connect = TRUE, shade = TRUE, scale = "percent")