Start learning with our library of video tutorials taught by experts. Get started

SPSS Statistics Essential Training (2011)
Illustration by

Creating bar charts for categorical variables


From:

SPSS Statistics Essential Training (2011)

with Barton Poulson

Video: Creating bar charts for categorical variables

Once your data is in SPSS, one of the best ways to understand it is with charts, and most basic kind of chart is a bar chart. This simply indicates how many people or cases fall into each particular category. One of the great developments in SPSS a few versions ago was something called the Chart Builder, which is a unified interface for nearly every kind of chart that SPSS can make. Now I'm going to show you how to use the Chart Builder to create a simple bar chart to show frequencies, or how common particular categories are.
Expand all | Collapse all
  1. 2m 58s
    1. Welcome
      1m 5s
    2. Using the exercise files
      40s
    3. Using a different version of the software
      1m 13s
  2. 19m 0s
    1. Taking a first look at the interface
      11m 49s
    2. Reading data from a spreadsheet
      7m 11s
  3. 21m 54s
    1. Creating bar charts for categorical variables
      7m 18s
    2. Creating pie charts for categorical variables
      2m 54s
    3. Creating histograms for quantitative variables
      5m 45s
    4. Creating box plots for quantitative variables
      5m 57s
  4. 33m 10s
    1. Recoding variables
      5m 33s
    2. Recoding with visual binning
      5m 33s
    3. Recoding by ranking cases
      5m 26s
    4. Computing new variables
      5m 37s
    5. Combining or excluding outliers
      5m 21s
    6. Transforming outliers
      5m 40s
  5. 28m 12s
    1. Selecting cases
      6m 44s
    2. Using the Split File command
      5m 12s
    3. Merging files
      5m 33s
    4. Using the Multiple Response command
      10m 43s
  6. 22m 14s
    1. Calculating frequencies
      8m 43s
    2. Calculating descriptives
      5m 31s
    3. Using the Explore command
      8m 0s
  7. 16m 3s
    1. Calculating inferential statistics for a single proportion
      6m 6s
    2. Calculating inferential statistics for a single mean
      5m 39s
    3. Calculating inferential statistics for a single categorical variable
      4m 18s
  8. 30m 43s
    1. Creating clustered bar charts
      7m 10s
    2. Creating scatterplots
      5m 8s
    3. Creating time series
      3m 24s
    4. Creating simple bar charts of group means
      4m 17s
    5. Creating population pyramids
      3m 0s
    6. Creating simple boxplots for groups
      3m 3s
    7. Creating side-by-side boxplots
      4m 41s
  9. 45m 28s
    1. Calculating correlations
      8m 17s
    2. Computing a bivariate regression
      6m 27s
    3. Creating crosstabs for categorical variables
      6m 34s
    4. Comparing means with the Means procedure
      6m 33s
    5. Comparing means with the t-test
      6m 4s
    6. Comparing means with a one-way ANOVA
      6m 30s
    7. Comparing paired means
      5m 3s
  10. 24m 30s
    1. Creating clustered bar charts for frequencies
      6m 34s
    2. Creating clustered bar charts for means
      3m 45s
    3. Creating scatterplots by group
      4m 13s
    4. Creating 3-D scatterplots
      4m 25s
    5. Creating scatterplot matrices
      5m 33s
  11. 30m 57s
    1. Using Automatic Linear Models
      11m 52s
    2. Calculating multiple regression
      9m 3s
    3. Comparing means with a two-factor ANOVA
      10m 2s
  12. 29m 29s
    1. Formatting descriptive statistics
      6m 1s
    2. Formatting correlations
      7m 49s
    3. Formatting regression
      10m 19s
    4. Exporting charts and tables
      5m 20s
  13. 51s
    1. What's next
      51s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
SPSS Statistics Essential Training (2011)
5h 5m Beginner Aug 17, 2011

Viewers: in countries Watching now:

In this course, author Barton Poulson takes a practical, visual, and non-mathematical approach to the basics of statistical concepts and data analysis in SPSS, the statistical package for business, government, research, and academic organization. From importing spreadsheets to creating regression models to exporting presentation graphics, this course covers all the basics, with an emphasis on clarity, interpretation, communicability, and application.

Topics include:
  • Importing and entering data
  • Creating descriptive charts
  • Modifying and selecting cases
  • Calculating descriptive and inferential statistics
  • Modeling associations with correlations, contingency tables, and multiple regression
  • Formatting and exporting tables and charts
Subjects:
Business Data Analysis
Software:
SPSS
Author:
Barton Poulson

Creating bar charts for categorical variables

Once your data is in SPSS, one of the best ways to understand it is with charts, and most basic kind of chart is a bar chart. This simply indicates how many people or cases fall into each particular category. One of the great developments in SPSS a few versions ago was something called the Chart Builder, which is a unified interface for nearly every kind of chart that SPSS can make. Now I'm going to show you how to use the Chart Builder to create a simple bar chart to show frequencies, or how common particular categories are.

I'm using a data set right here, this is called Movies.sav. This is a data set that I and my research colleagues put together that included the top grossing movies from each of several years, as well as movies that won awards in several different categories, from the Academy Awards. What I'm going to do right here is I'm simply going to find out how many movies in this are in each different genre. Now this is a text variable, and we're going to make a bar chart to show the categories. I simply come up to Graphs, to Chart Builder, and then by default right here it offers bar charts, that's the first one, and I just want the simplest kind possible.

As a general rule, data graphics are designed to communicate, and they need to communicate clearly, and you want to use this simplest possible kind of chart that you can make, and a bar chart is a great one. And all I'm going to do is I'm going to come over to Genre. Please note it's got the three little circles that indicates its a nominal variable, and the A says that it's a text variable, as opposed to the year it released, which is also being treated as a categorical variable but it's got a number underneath it. So I'm going to just take this out of the variable list and I'm going to drag it into the canvas to right here under X axis.

One of the nice things is that the canvas automatically changes the Y axis on the side to read Count because that's the most common thing I would want do with a bar chart. Now I have lots of options here. One thing I can do, for instance, is I can just simply use the gallery to get lots of different kinds of charts. I'm using the basic one. Now if you can't find what you're looking for in the gallery, you can actually create a chart out of basic elements. It's a lot of work and we're not going to cover that one. There may be situations you want to be able to stick an identifier on a particular data point, and you can do that here. Or you can add titles and notes.

So for instance, I'm going to put Title 1, "Frequency of Movie Genres in the Dataset." Easy enough, and I press Apply. I can make other categories and other titles as well, but I'm not going to worry about those right now. All I'm going to do now is come over and press OK, and when I do to that, I get a large amount of output here that is the written record of a procedure that I just performed.

I get this that says GGraph-- that's the kind of graph we're making--the Source, the data set, and then here's the graph itself. And this shows, for instance, in this data set that that is based on top grossing movies and award winners, the dramas are more common than anything else, and that thrillers are the least common, most of this because a lot of these are drawn on award winners and thrillers win those less frequently than others. Now what I want to show you is there are ways to clean up these charts and to modify them to make them work little better. Aside from the simple fact that I think this is an ugly color, there are a lot of things that can be done to make this more communicative.

To enter the chart in SPSS, all you've got to do is you come over it and you double-click. And this brings up the Chart Editor window. When you're doing your charts, you want to look at the order that the bars appear in. Now by default, SPSS puts them in alphabetical order, and there may be situations in which that's appropriate. However, it's usually easier to read charts if you sort the data by their values. In this case, I'd like to have the most common to the least common, and what I'm going to do here as I just click on the bars and I come over here to the Properties window and it says Categories, Sort By, at the moment it says Custom. I just want to put it as Statistic, and I'm going to make it Descending, and I press Apply.

And now I see it goes from Drama, the most common, to Documentary, to Action, to Foreign, to Comedy, to Animated, to Thriller. If I want to change the colors of these-- these are still selected--I come over to Fill and Border, and I can change into a color that I find a little nicer. Now personally, I like to use light colors because I feel that it's easier to see them, but it does not dominate the vision. And so I've changed these to blue with a blue border as well. Also if you want to make these ones down here larger, these words, you can simply click on them and come over to Text Size.

The preferred size is 8 point, which is really small, especially since most of the time these charts are going to be used in presentations, like in PowerPoint, where people are going to be sitting 20, 30, 40 feet away. So you can change these to be 12 point, for instance. Now what's happened is that SPSS has automatically changed them to a staggered layout. That's because they'd run over to each other were documenters much longer, and animated and much longer. One way to deal with this, and something that I do frequently, is when I have a chart like this, you can actually come up to the button that says Transpose the chart coordinate system.

If I click on that, it switches the chart so that the labels are on the left and then the bars go off to the right. Now one thing that's happened to this is that the most common one is down by the bottom where the axis is. That's not helpful in this kind of chart, and so I'm going to click on the Categories, I'm going to click on the bars, go back to Categories, and instead of doing them Descending, I'll do them Ascending. And this puts the most common category on the top and the least common on the bottom. Also it may be that I don't really feel like I need this word Genre here in the title.

What I can do is I can click on that and I can come over to Labels & Ticks in the Property window and simply uncheck Display the axis title. I click that, and the way it works in SPSS as almost any time you're going to do anything, you then have to apply it. I apply it, and that disappears, and I find this to be a much cleaner chart. And as a bar chart, it displays very well. The prevalence of each category, it puts them into a logical order from most common to least common, the labels are large enough that I can read them, and I've been able to work on this very nicely.

Now once you've set up a chart in a way that you've modified it a fair amount, if you want to, you can come back to the Chart Editor and click on File and actually save this as a chart template. And it gives you the option of saving all of your settings, except I don't want to save all of the Text Content, so I will undo that, and I can say Continue. And I can simply save it as a Bar Chart Template Transposed, or whatever you think might be useful for you to find that template again in the future. I'll click Save, and now I can apply that template on other charts if I want to.

But this is the most basic kind, and truthfully, one of the most informative kinds of charts, the bar chart, a simple bar chart, two-dimensional, that communicates the frequency of categories in a categorical variable.

There are currently no FAQs about SPSS Statistics Essential Training (2011).

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed SPSS Statistics Essential Training (2011).

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.