Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display a chart of scaled counts of elements in a list
ResourceFunction["ScaledRankChart"][list] displays a chart of ranked counts of elements in a given list. |
| ImageSize | Automatic | how big the chart should be |
| LabelStyle | None | style to apply to label texts |
| "Logarithmic" | True | whether chart area is a linear or logarithmic function of frequency |
| LogPower | 1/2 | power p to use in pie-chart area formula: Log[1+count]*countp |
| MaxItems | 40 | max number of items beyond which they are lumped in the category “other” |
| "MinCount" | None | minimum count, beyond which they are lumped in category “other” |
| "NumberExamples" | 10 | number of examples to use in 2-argument form |
| "OtherChart" | False | whether to allow mousing-over the “other” category to see next section of distribution |
| "Rotation" | Automatic | how much to rotate the starting sector axis |
| "ShowCounts" | True | whether to show counts next to each chart element |
| "Tooltips" | None | rules mapping elements to tooltips |
| "Type" | PieChart | the type of chart displayed (BarChart or PieChart) |
| "UseLegend" | False | whether to show a separate legend box |
Show a chart of the distribution of random variables:
| In[1]:= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= | ![]() |
Rapidly-dwindling distributions are still legible:
| In[4]:= |
| Out[5]= |
| In[6]:= | ![]() |
| Out[6]= | ![]() |
Chart the ranked distribution of random variables:
| In[7]:= |
| Out[7]= | ![]() |
Tokenize the text of Alice in Wonderland:
| In[8]:= | ![]() |
| Out[9]= |
Display the distribution of words in the text, grouping elements making up less than 1% under the category “other”:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License