Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot the occurrences of labels in a list
| ResourceFunction["LabelListPlot"][list] plots the occurrences of labels in a list. | 
Make a simple LabelListPlot:
| In[1]:= | ![ResourceFunction["LabelListPlot"]@
 RandomChoice[{"\[ImaginaryI]", "\[Pi]"}, 200]](https://www.wolframcloud.com/obj/resourcesystem/images/7c2/7c2cab3a-c2a3-47fe-bac7-c13eac2e09c4/1699a64e9cd4dd97.png) | 
| Out[1]= |  | 
Plot a sequence from a categorical distribution:
| In[2]:= | ![cd = CategoricalDistribution[{"A", "B", "C", "D"}];
ResourceFunction["LabelListPlot"][RandomVariate[cd, 50], PlotMarkers -> "OpenMarkers"]](https://www.wolframcloud.com/obj/resourcesystem/images/7c2/7c2cab3a-c2a3-47fe-bac7-c13eac2e09c4/6d2e38b2009f30c9.png) | 
| Out[3]= |  | 
Sublists can be of different lengths:
| In[4]:= | ![input = {Table[RandomChoice[{.2, .8} -> {"a", "b"}], {50}], Table[RandomChoice@{"c", "d"}, {20}]};
Map[If[RandomReal[] > 0.1, #, Missing] &, input, {2}];](https://www.wolframcloud.com/obj/resourcesystem/images/7c2/7c2cab3a-c2a3-47fe-bac7-c13eac2e09c4/190fc4f6e88b29f1.png) | 
| In[5]:= | ![ResourceFunction["LabelListPlot"][input, Joined -> True]](https://www.wolframcloud.com/obj/resourcesystem/images/7c2/7c2cab3a-c2a3-47fe-bac7-c13eac2e09c4/397a245fb301aa3f.png) | 
| Out[5]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License