categories3
# Centered dot plot showing exponential/long-tail pattern
shape_comp_plot(categories3, "animal")
# Pareto chart highlighting cumulative frequency and dominance
pareto(categories3, "animal")
# Optional: ranked or centered bar plots
ranked_barplot(categories3, "animal")
centered_barplot(categories3, "animal")
Run the code above in your browser using DataLab