You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked at treemap and its references, and I like the very simple strip approach in Bederson, Shneiderman and Wattenberg (2002), because it perfectly preserves order in a very linear way. I have written a function (strip) that does the calculations, resolving the issue of getting very lean last strips by a quick and dirty check whether the last two strips should be merged. I have checked out its performance against pivotSize and squarified (simulated data, informal checks only). strip seems to do quite well in terms of maximum and average aspect ratio.
I attach the function and functions for checking it out (strip_algorithm_for_treemap_GPLge2.zip); I tried to make the function yield the output that you need, but I don't know treemap well enough to be sure that it fits all treemap requirements; at least it seems to handle the plot's aspect ratio a little differently, but that should be a rescaling issue only. Feel free to use and modify as needed for incorporating this nice little algorithm into treemap.
Best, Ulrike
The text was updated successfully, but these errors were encountered:
Hi Martijn,
I have looked at treemap and its references, and I like the very simple strip approach in Bederson, Shneiderman and Wattenberg (2002), because it perfectly preserves order in a very linear way. I have written a function (
strip
) that does the calculations, resolving the issue of getting very lean last strips by a quick and dirty check whether the last two strips should be merged. I have checked out its performance againstpivotSize
andsquarified
(simulated data, informal checks only).strip
seems to do quite well in terms of maximum and average aspect ratio.I attach the function and functions for checking it out (strip_algorithm_for_treemap_GPLge2.zip); I tried to make the function yield the output that you need, but I don't know treemap well enough to be sure that it fits all treemap requirements; at least it seems to handle the plot's aspect ratio a little differently, but that should be a rescaling issue only. Feel free to use and modify as needed for incorporating this nice little algorithm into treemap.
Best, Ulrike
The text was updated successfully, but these errors were encountered: