
The rectangles are colored by the type of company, and the rectangles are grouped by company size. We also have a variable for the sizes of the companies. This example shows more categories of companies than the previous examples. The rectangles are sized by average sales in US dollars. Now we have a variable for different types of companies with six levels. Figure 3 shows similar financial data as is presented in Figure 2. Treemaps are more useful for larger sets of variables with a large number of levels. Example 2: Categories and hierarchy for larger sets of variables with many levels However, by using the category variable, we see that the original conclusion that medium-sized companies have the highest profits/employee is not true. The original conclusion that large companies have the highest average sales is still true. Tools that provide “hover help” or allow interactive drill-down are helpful here. This situation is common with larger sets of data that result in many small rectangles. The treemap cannot label the smallest rectangle for the small pharmaceutical companies. We also see that medium-sized computer companies have a negative profit/employee. The rectangles are sized by the average sales (in US dollars) for the categories of companies and colored by the profits per employee.įrom the treemap in Figure 2, we see that the profit/employee is highest for small pharmaceutical companies. From the rectangle sizes, we see that large companies in both categories have the highest sales. The very simple treemap in Figure 1 shows the structure of sales for small, medium and large companies. Some tools allow drill-down to show more detail, which is useful when a treemap has small rectangles and the labels cannot be seen easily. Most tools have an option to color the rectangles and can add labels to them. Software tools use an algorithm to construct the size of rectangles proportional to the number of observations that fall within each rectangle. Treemaps are almost always computer-generated. Treemaps originated as a way to show the structure and size of files on a computer hard drive. Treemaps are now used for many situations, including those without a hierarchy. Treemaps can show a large amount of data in a small amount of space. A treemap is an arrangement of rectangles that shows the hierarchical structure of your data.
