Create a histogram of a single Y variable with groups

In the Histogram dialog box, complete the following steps to specify the data for your graph. If your data are arranged differently than described below, go to Choose a histogram.

  1. In Y variable, enter the numeric column that you want to graph.
  2. In Group variable, enter the column of categorical data that defines the groups.
In the following worksheet, the Y variable is Torque, which contains samples of torque measurements. Machine is the group variable and indicates whether each torque measurement is from machine 1 or machine 2. The graph shows the distribution of the torque measurements for each machine.
C1 C2
Torque Machine
14 1
18 1
24 2
... ...
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy