Using the Cities.jmp sample data table, specify a Sizes variable to see a treemap of city sizes based on population.
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
Click OK.
|
•
|
•
|
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
Click OK.
|
The report window appears. Since you specified an Ordering variable, the cities in the treemap are ordered from bottom left (small cities) to upper right (big cities).
For example, in the Cities.jmp sample data table, the X and Y columns correspond to the geographic location of the cities. Specify the X and Y columns as Ordering variables:
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
The X variable corresponds to the western and eastern US states.
5.
|
The Y variable corresponds to the northern and southern US states.
6.
|
Click OK.
|
For example, using the Cities.jmp sample data table, specify a continuous Coloring variable as follows:
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
Click OK.
|
Note that the size of the rectangles is still based on the number of occurrences of the Categories variable, but the colors are mapped to ozone values. The high ozone value for Los Angeles clearly stands out. Missing values appear as black rectangles.
For example, using the Cities.jmp sample data table, specify a categorical Coloring variable as follows:
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
Click OK.
|
City Colored by Region
All of the cities belonging to the same region are colored the same color. The colors are chosen from JMP’s color theme.
6.
|
From the red triangle menu, select Layout > Squarify.
|
Using the Cities.jmp sample data table, examine the distribution of different pollution measurements (ozone and lead) across selected cities in the United States.
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
6.
|
7.
|
Click OK.
|
OZONE Levels for Selected Cities
Next, examine lead levels in the selected cities. Perform the same steps as before, but substitute OZONE with Lead for the Coloring variable.
Lead Levels for Selected Cities
This example uses the Failure3.jmp sample data table, which contains the common causes of failure during the fabrication of integrated circuits. Examine the causes of failure and when it occurs.
1.
|
2.
|
Select Graph > Treemap.
|
3.
|
4.
|
5.
|
6.
|
Click OK.
|
From Failure Modes, you observe the following:
This example uses the Cars.jmp sample data table, which contains impact measurements of crash-test dummies in automobile safety tests. Compare these measurements for different automobile makes and models during the years 1990 and 1991.
1.
|
Filter the data to show only the years 1990 and 1991 and create a subset of the Cars.jmp data table.
2.
|
Select Rows > Data Filter.
|
3.
|
Select Year.
|
4.
|
Click Add.
|
6.
|
In the data table, select Tables > Subset.
|
7.
|
1.
|
Select Graph > Treemap.
|
2.
|
3.
|
4.
|
L Leg represents a measurement of injuries resulting from the deceleration speed of the left leg, where more deceleration causes more injury.
5.
|
Click OK.
|
From Left Leg Deceleration Injuries, you can see that the Club Wagon and S10 Pickup 4x4 have the largest number of left leg deceleration injuries.
1.
|
From the red triangle menu, select Change Color Column.
|
2.
|
Select Head IC.
|
3.
|
Click OK.
|
From Head Injuries, you notice the following: