Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot a polar tree map of a given nested list
ResourceFunction["PolarTreemapPlot"][list] generates a polar treemap plot of a tree-like structure list. |
| Background | White | specify what background color to use |
| ColorFunction | Automatic | applies a given color function f[path,area,{rad1,rad2}] to the arc sectors |
| ImageSize | 500 | specify the size of the resulting graphic |
| "TooltipFunction" | Automatic | applies a tooltip function f[path,area,{rad1,rad2}] to the arc sectors |
| "SortSectors" | True | whether to leave arc sectors in their original ordering or sort by area |
Plot simple polar tree map:
| In[1]:= |
| Out[1]= | ![]() |
Compare a polar tree map to other tree visualizations:
| In[2]:= | ![]() |
| Out[3]= | ![]() |
Plot random polar tree maps of varying depths:
| In[4]:= | ![]() |
| Out[5]= | ![]() |
Tooltips (displayed by default) show both the path from the root to the selected node and the area of its subtree:
| In[6]:= |
| In[7]:= |
| Out[7]= | ![]() |
Set the resultant image size and use a custom color function:
| In[8]:= | ![]() |
| Out[7]= | ![]() |
Set a custom tooltip function:
| In[9]:= |
| Out[7]= | ![]() |
By default, all arc sectors are sorted by value, i.e. area:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
When unsorted, arc sectors may be ordered differently:

Set the Background color and ImageSize of the plot:
| In[11]:= |
| Out[7]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License