Create a histogram with a fitted distribution line and groups

Graph > Histogram > With Fit and Groups

To create a histogram with a fitted distribution line and groups, complete the steps for the option that best describes your data.

Groups are defined by values in categorical variables

Complete the following steps if your groups are defined by values in a grouping variable, or unique combinations of values in multiple grouping variables.

  1. In Graph variables, enter the numeric or date/time column that you want to graph.
  2. In Categorical variables for grouping (0-3), enter up to three columns that define the groups.

In this worksheet, Torque is the graph variable and Machine is the categorical variable for grouping. The graph shows the distribution of torque values for each machine, with normal fitted distribution lines.

C1 C2
Torque Machine
22 1
18 1
31 2
... ...
Note

For information on how to specify different distributions and parameters, go to Fitted distribution lines.

Groups are graph variables

Complete the following steps if you have multiple numeric or date/time columns and each column is a group.

  1. In Graph variables, enter multiple numeric or date/time columns that you want to graph.
  2. Select Graph variables form groups.

In this worksheet, Machine_1 and Machine_2 are the graph variables. Each variable forms a group. The graph shows the distribution of torque values for each machine, with normal fitted distribution lines.

C1 C2
Machine 1 Machine 2
14 24
18 27
27 17
... ...
Note

For information on how to specify different distributions and parameters, go to Fitted distribution lines.