Function Repository Resource:

# PolarTreemapPlot

Plot a polar tree map of a given nested list

Contributed by: Michael Sollami
 ResourceFunction["PolarTreemapPlot"][list] generates a polar treemap plot of a tree-like structure list.

## Details and Options

The first argument list of ResourceFunction["PolarTreemapPlot"] is typically a list of arbitrarily nested and ragged numbers.
ResourceFunction["PolarTreemapPlot"] take the following options:
 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

## Examples

### Basic Examples (1)

Plot simple polar tree map:

 In[1]:=
 Out[1]=

### Scope (4)

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]=

### Options (3)

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]=

Michael Sollami

## Version History

• 1.0.0 – 21 April 2020