You can represent different groups on a graph so that you can easily compare groups. For example, you can create a scatterplot of Weight vs. Height for women and Weight vs. Height for men.

Minitab offers several ways to display groups on your graph; however, not all the options are available for all graphs or worksheet arrangements.

Overlaid groups are effective when you have relatively few categorical levels, or if relatively small differences are visible if the groups share the same graph.

The steps below describe how to add Gender as a grouping variable to this
scatterplot.

- Double-click the graph.
- Double-click a symbol. (For more information, go to Select groups and single items on a graph.)
- On the
Groups
tab, in
Categorical variables for grouping,
enter
`Gender`.

The symbols for males (M) are now red squares to differentiate them from
the symbols for women (F). The attributes for each level of the Gender variable
are also described in the legend.

The steps below describe how to add Year as a grouping variable to this
scatterplot, which contains symbols, connect lines, and project
lines.

- Double-click the graph.
- Double-click a symbol. (For more information, go to Select groups and single items on a graph.)
- On the
Groups
tab, in
Categorical variables for grouping,
enter
`Year`. - Check Apply same grouping to other data displays to use the same grouping variables for all data display elements.

If you edit the symbols to add Year as a grouping variable and do not select Apply same grouping to other data displays, only the symbols show the groups. If you select this option, then the groups are applied to all of the data display elements.

For boxplots and similar graphs, groups are represented by different
locations on the axis. For example, in this boxplot, the labels on the x-axis
indicate which group each box belongs to.

You can also use color and other attributes to distinguish between groups.
For example, to assign an attribute variable for Gender in the boxplot above,
do the following.

- Double-click the graph.
- Double-click a box to open the Edit Interquartile Range Box dialog box. (For more information, go to Select groups and single items on a graph.)
- On the
Groups
tab. in
Assign
attributes by categorical variables,
enter
`Gender`.

The boxes for males (M) are now red to differentiate them from the boxes
for women (F). The colors for each level of the Gender variable are also
described in the legend.

The steps below describe how to different attributes to a grouping variable in a boxplot, which contains interquartile range (IQR) boxes and range boxes.

- Double-click the graph.
- Double-click a box to open the Edit Interquartile Range Box dialog box. (For more information, go to Select groups and single items on a graph.)
- On the
Groups
tab, in
Assign
attributes by categorical variables,
enter
`Activity`. - Check Apply same grouping to other data displays to use the same grouping variables for all data display elements.

Paneling can be effective, for example, when you want to show the distinction between many categorical levels, or when data displays overlap (as with histograms).

To add panels to a graph:

- Right-click the graph and choose Panel.
- In By variables with groups in separate panels, enter a variable to specify the panels.

Display each group on a separate graph when you want to examine one group at a time.

To create separate graphs of groups:

- In the graph creation dialog box, click Multiple Graphs.
- Do one of the following:
- If you have unstacked data, click the Multiple Variables tab and choose On separate graphs.
- If you have stacked data, click the By Variables tab and enter a grouping variable for groups on separate graphs.