Create a boxplot of multiple Y variables with groups

In the Boxplot 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 boxplot.

  1. In Y variables, enter multiple numeric columns that you want to graph.
  2. In Group variable, enter the column of categorical data that defines the groups.

In the following worksheet, Week 1, Week 2, and Week 3 are the variables and contain the diameters of plastic pipes that are manufactured each week for 3 weeks. Machine is the group variable and indicates whether the pipes are manufactured by machine 1 or machine 2. The graph shows the distribution of diameters for each machine, clustered by week.

C1 C2 C3 C4
Week 1 Week 2 Week 3 Machine
5.19 5.57 8.73 1
5.53 5.11 5.01 2
4.78 5.76 7.59 1
... ... ... ...
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy