Creating a scatterplot in SPSS is pretty straightforward. However, I sometimes like to take a quick look at all scatterplots among a set of variables. So I created a simple tool that creates all of them in one click.
All Scatterplots Tool - Download and Install
- First off, make sure you have SPSS version 18 or higher with the SPSS Python Essentials properly installed and tested as the tool won't run without them.
- Next, download the SPSS All Scatterplots Tool.
- For SPSS versions 24 and higher, navigate to
Earlier SPSS versions have something similar under the menu.
as shown below.
- Close off and restart SPSS if you're on version 23 or below.
All Scatterplots Tool - How to Use?
If you successfully installed the tool, you'll find it in the
Let's try that on adolescents.sav, a data file mainly holding psychological test scores on adolescents. Part of its variable view is shown below.
I'll select the last 5 variables. Clickingresults in the syntax below. Let's run it.
SPSS_TUTORIALS_ALL_SCATTERPLOTS VARIABLES = 'iq depr anxi soci wellb'.
*Same results, less syntax.
SPSS_TUTORIALS_ALL_SCATTERPLOTS VARIABLES = 'iq to wellb'.
Note: you can shorten the variable specification somewhat by using TO or even ALL as shown in the second example.
All Scatterplots Tool - Result
Sure enough, running the syntax results in all 10 distinct scatterplots: for 5 variables, there's 5 * (5 -1) * 0.5 = 10 unique variable pairs. One of those is shown below.Bonus question: does this scatterplot show anything problematic?
All Scatterplots Tool - Final Notes
- You obviously can't select any string variables in the tool’s dialog. If you add names of string variables to the syntax manually, the tool will silently ignore them.
- For prettier charts, set some chart template before running the syntax.
That's it. I hope you'll like this little tool as much as I do.
Thanks for reading!