For the latest version of JMP Help, visit JMP.com/help.


Publication date: 04/21/2023

Create a Grouping Variable

Before you perform a scatterplot matrix analysis, if your data does not have a grouping variable, you can create one using the Cluster platform. Using the Iris.jmp data, assume that the Species column does not exist. You know that the data comes from three species of iris flowers, so you want to create three clusters within a group.

1. Using the Iris.jmp sample data table, select Analyze > Clustering > Hierarchical Cluster.

2. Select Sepal length, Sepal width, Petal length, and Petal width and click Y, Columns.

3. Click OK.

4. Click the Hierarchical Clustering red triangle and select Number of Clusters.

5. Type 3 to represent the three different Iris species.

6. Click OK.

7. Click the Hierarchical Clustering red triangle and select Save Clusters.

8. Close the Hierarchical Cluster report window, and go back to the Iris.jmp data table.

You can see that a Cluster column has been added to the Iris.jmp data table.

9. Perform the Scatterplot Matrix analysis. Follow the instructions in Example Using a Grouping Variable, but use Cluster as the grouping variable.

Figure 6.9 Example of a Scatterplot Matrix Using a Cluster Variable 

Example of a Scatterplot Matrix Using a Cluster Variable

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).