Learn R Programming

nomiShape

nomiShape provides tools for visualizing and summarizing nominal (categorical, unordered) variables, with a focus on understanding the shape of categorical frequency distributions rather than relying on arbitrary category ordering.

The package introduces centered frequency plots, where categories are ordered from the most frequent at the center toward less frequent categories on both sides. This design helps reveal patterns such as dominance, uniformity, symmetry, skewness, and long-tail behavior in nominal data.

The package is designed for exploratory data analysis, teaching, and methodological research, and produces ggplot2-compatible visualizations.

nomiShape 1.0.0 available on CRAN!

Copy Link

Version

Install

install.packages('nomiShape')

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Norberto Asensio

Last Published

February 24th, 2026

Functions in nomiShape (1.0.1)

starwars

Star Wars dataset
pielou_evenness

Pielou's Evenness for Nominal Variables
ranked_barplot

Ranked Bar Plot for Nominal Variables
mpg

MPG dataset
dominance_index

Dominance Index for Nominal Variables
central_concentration

Central Concentration Index for Nominal Variables
pareto

Pareto Plot for Nominal Variables
centered_dotplot

Centered Dot Plot for Nominal Variables
centered_barplot

Centered Frequency Bar Plot for Nominal Variables Creates a centered bar plot for discrete nominal variables by placing the most frequent category at the center and progressively less frequent categories alternately to the left and right.
tail_index

Tail Index for Nominal Variables
ranked_dotplot

Ranked Dot Plot for Nominal Variables
shape_aic

Fit Nominal Data to Theoretical Shapes Using AIC (Safe Exponential)
shape_comp_plot

Compare Observed Nominal Distribution with Theoretical Shapes
categories4

Categories4: Structured (triangular / normal-like) nominal distribution
categories2

Categories2: Triangular Distribution of Bikinibottom Species
ufo

UFO Sightings: Nominal distribution of reported UFO shapes
categories

Categories: Uniform Distribution of Bikinibottom Species
categories3

Categories3: Exponential/Dominance Distribution of Bikinibottom Species