Skip to Main Content

SPSS eTutor: Graphs

A Brief Guidebook for using SPSS at SUNY Empire

Graphs

SPSS enables you to present your data visually in the form of graphs. It is important to note that the variable’s level of measurement determines the type of graph that you should use. Bar charts and pie charts are most frequently used for nominal and ordinal variables. Scale variables are most frequently represented by line charts and histograms.

The following examples use the General Social Survey 2008 database. You can download this database by going to the home page of this site and clicking on the link.

To construct any of the following charts, go to Graphs, Legacy Dialogues, and then click on the type of graph that you want to create.

Construction of Simple Bar Graphs: (nominal or ordinal level variables)

For this example, select Bar. Your screen will look like this:

Next, click on SimpleSummaries for groups of cases, and Define.

For this example, let’s graph the variable “sex”. Click on the variable name and move it to the Category Axis box. In the Bars Represent box, you can decide if you want the number or percentage of respondents that fit that description. In the following example, I selected percentage:

Click OK. Your output should look like this:

Construction of Clustered Bar Graphs: (nominal or ordinal level variables) 

You can construct more complex bar charts. You may choose to graph multiple variables in one bar chart. For example, you may want to graph the variable “happy” and identify how men and women responded to this variable.

Go back to GraphsLegacy Dialogues. Once again, select Bar at the top of your screen. Next, click on ClusteredSummaries for groups of cases, and Define. Move your variables so that the window looks like this:

Click OK. Your output will look like this:

Construction of Pie Charts: (nominal or ordinal level variables)

Once again, go back to GraphsLegacy Dialogues. This time, select Pie at the top of your screen. Then click on, Summaries for groups of casesDefine.

Let’s see what the pie chart for the variable “happy” looks like. In the Slices Represent box, determine if you want pie to be divided by the number of people or the percentage of people. For this example I used the number of cases. Click on the variable name “Happy”. Then move your variable into the Define Slice By box. Your screen should look like this:

Click OK. Your output will look like this:

 

Constructing Histograms: (scale level variables)

Histograms have an x axis (variable categories) and a y axis (frequency or percentage). However, unlike bar charts, histograms have contiguous bars.

Once again, go back to GraphsLegacy Dialogues. This time, select Histogram at the top of your screen.

For this example, I decided to chart the variable “tvhours” from the General Social Survey 2008 database. This variable is the number of hours a day the respondent watches

television.  Select the variable “tvhours” from the list and click on the arrow for the Variable box. Your screen will look like this:

Click OK. Your output should look like this:

Constructing Line Charts: (scale level variables)

Constructing Line graphs is similar to the process that you have used for the other types of graphs. For this example, I decided to chart the variable “tvhours” by the percentage of “sex”. Your screen should look like this:

Click OK. Your output will look like this:

 

 

Please note: If you need to request accommodations with content linked to on this guide or with your SPSS Software for your coursework, on the basis of a disability, please contact Accessibility Resources and Services by emailing them.  Requests for accommodations should be submitted as early as possible to allow for sufficient planning. If you have questions, please visit the Accessibility Resources and Services website.

 

Creative Commons License

 

SPSS eTutor by Dee Britton is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.