Displaying groups on graphs

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. You have several options for displaying groups on graphs.

Ways to display groups on a graph

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

Groups are overlaid on the same graph

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.

A legend identifies the different data displays for the groups.

To add groups to an existing graph:
  1. Double-click a data representation on the graph, for example, a symbol.
  2. Click the Groups tab and enter a categorical variable for grouping.

Groups are in separate panels of the same graph

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:
  1. With the graph active, choose Editor > Panel.
  2. Enter a variable to specify the panels.

Groups are on separate graphs

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

To create graphs of groups in separate Graph windows:
  1. In the dialog box for the graph you are creating, click Multiple Graphs.
  2. 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.

Ways to arrange groups in a worksheet

In a worksheet, groups can be determined by a grouping variable (stacked data), or by separate columns for each group (unstacked data).

Stacked data

Groups are determined by a grouping variable; also known as a By variable. In the following worksheet, the grouping variable is Gender and the groups are Weight vs Height for Female (F) and Weight vs Height for Male (M).

C1 C2 C3-T
Height Weight Gender
3.5 1.1 M
5.2 1.2 F
6.1 1.3 M
... ... ..

Unstacked data

Each column, or X-Y column pair for scatterplots, is a group. In the following worksheet, the groups are Weight Female vs Height Female and Weight Male vs Height Male.

C1 C2 C3 C4
Height Male Height Female Weight Male Weight Female
3.5 5.2 1.1 1.2
6.1 3.7 1.3 0.9
4.5 4.1 1.8 1.5
... ... ... ...
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy