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.2

License

MIT + file LICENSE

Maintainer

Norberto Asensio

Last Published

March 21st, 2026

Functions in nomiShape (1.0.2)

tail_index

Tail Index for Nominal Variables
starwars

Star Wars dataset
mpg

MPG dataset
ranked_dotplot

Ranked Dot Plot for Nominal Variables
rare_plot

Rarefaction curve 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.
categories4

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

Central Concentration Index for Nominal Variables
dominance_index

Dominance Index for Nominal Variables
categories2

Categories2: Triangular Distribution of Bikinibottom Species
alice

Alice in Wonderland word dataset
categories

Categories: Uniform Distribution of Bikinibottom Species
kafka

The Metamorphosis word dataset
categories3

Categories3: Exponential/Dominance Distribution of Bikinibottom Species
shape_comp_plot

Compare Observed Nominal Distribution with Theoretical Shapes
shape_aic

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

Pielou's Evenness for Nominal Variables
ranked_barplot

Ranked Bar Plot for Nominal Variables
ufo

UFO Sightings Dataset
zipf_rank_plot

Rank-frequency (Zipf) plot for nominal variables