How can I create side-by-side boxplots in SPSS?

Creating side-by-side boxplots in SPSS is a useful way to visually compare two or more sets of data. To do this, start by selecting “Graphs” from the main menu and then choose “Legacy Dialogs.” From there, select “Boxplot” and then “Side-by-Side” from the options. Next, select the variables you want to compare and click “Define.” You can then customize your boxplots by selecting “Options” and making changes to the appearance, labels, and other settings. Once you are satisfied with the settings, click “OK” to generate the side-by-side boxplots. This will allow you to easily compare the distribution, central tendency, and variability of the different variables in your data set.

Create Side-by-Side Boxplots in SPSS


Side-by-side boxplots are a useful way to compare the distribution of data values in multiple groups at once.

This tutorial explains how to create the following side-by-side boxplots in SPSS:

side-by-side boxplots in SPSS

Let’s jump in!

Example: How to Create Side-by-Side Boxplots in SPSS

Suppose we have the following dataset in SPSS that contains information about points scored by basketball players on three different teams:

Suppose that we would like to create side-by-side boxplots to visualize the distribution of points scored by players on each team.

To do so, click the Graphs tab, then click Boxplot:

In the new window that appears, click the Simple icon, then click Define:

In the new window that appears, drag Points to the Variable panel, then drag Team to the Category Axis panel:

Once you click OK, the following side-by-side boxplots will be created:

side-by-side boxplots in SPSS

The x-axis displays each unique team name and the y-axis displays the points for each team.

From viewing the boxplots we can see that team C has the highest median points per player while team A has the lowest median points per player.

We can also see that team B has the largest interquartile range, which represents the difference between the 75th percentile and 25th percentile of points scored.

Additional Resources

The following tutorials explain how to perform other common tasks in SPSS:

x