Shape Comparison Plots for Nominal Variables

Shape Comparison Plots for Nominal Variables

This vignette demonstrates how to create shape comparison plots for nominal variables using the shape_comp_plot function from the nomiShape package. Shape comparison plots visually compare the distribution shapes of the observed distribution (in black dotted line) of a nominal variable with a set of 4 theoretical ones: uniform, triangular, normal and exponential.

Creating Shape Comparison Plots

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

# Example usage of shape_comp_plot
shape_comp_plot(categories2, "animal")

# Example usage of shape_comp_plot
shape_comp_plot(categories3, "animal")

# Example usage of shape_comp_plot
shape_comp_plot(starwars, "species")