Example: Clustered Bar Chart with a Summary Statistic

We will now create a clustered bar chart to see whether the difference in mean salary between males and females is subject to job type. Perhaps females, on average, make more than males for certain job types.

Note: This example uses Employee data.

  1. From the menus choose:

Graphs > Graphboard Template Chooser...

  1. On the Basic tab, select jobcat and salary . (Use Ctrl+Click to select multiple fields/variables.)
  2. Select Bar.
  3. From the Summary list, select Mean.
  4. Click the Detailed tab. Note that your selections from the previous tab are reflected here.
  5. In the Optional Aesthetics group, choose gender from the Color drop-down list.
  6. Click OK.
Figure 1. Clustered bar chart
Clustered bar chart

We can observe the following: