Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Mosaic plots for datasets and lists of records
Contributed by: Anton Antonov
The paclet provides the function MosaicPlot that summarizes the conditional probabilities of co-occurrence of categorical values in a Dataset object or a list of records of the same length.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/MosaicPlot"]
To load the code after installation, evaluate this code:
Needs["AntonAntonov`MosaicPlot`"]
Get an example dataset (Titanic data):
In[1]:= |
Out[2]= |
Make a mosaic plot for categorical columns:
In[3]:= |
Out[3]= |
Rotate labels, specify column names, and column names offset and style:
In[4]:= |
Out[5]= |
Make a random dataset:
In[6]:= |
Make different mosaic plots using different color rules:
In[7]:= |
Out[8]= |