Stacked bar graph


 

     A stacked bar graph, also known as a segmented bar chart is a graph that displays the conditional distribution of a categorical variable within each category of another variable. The graph treats each bar as the "whole" and divides it proportionally into segments corresponding to the percentage in each group. The bars are normally plotted vertically but can be plotted horizontally

 

A stacked bar graph can clearly show whether or not the variables are associated.

 

A stacked bar graph does unfortunately have some deficiencies. It can be hard to compare the clustered variables. For Example, in the problem below, it would be vary hard to compare the "normal" group across the three age groups. Each age group bar might be the same size, but since the "normal" clustered variable is forced to sit on top of the "low" clustered variable they are not on the same level so we have no way to accurately compare it across the age groups. Overall this is the main problem with this type of graph and this deficiency only gets worse as more clustering variables are added, so this is not an ideal graph to use when you are trying to compare more than three variables.

 

For example, the problem we will illustrate gives you data on the blood pressure levels and age of a certain companies employees (Problem 37 Pg. 40 in Intro Stats 4th Edition book). One categorical variable measures the age of the employee with three sub-categories (Under 30, 30-49, and over 50) while the other variable measures the level of blood pressure with three sub-categories (low, normal, or high). To determine if these two variables are associated with each other we can use a stacked bar graph.

 

 

One can see the the outcomes of the employees blood pressure levels and how it is distributed among each age group. Although the amount of people in each age group differs, we set each age group (independent variable) to be 100%. This way, you can see what percentage in each age group has low, normal or high blood pressure. For example, there were more employees over the age of 50 tested but since we make each age group equal to 100%, it is the same height as the other bars so the percentages of people with low, normal or high blood pressure within this age group can be fairly compared with the other age groups. Creating stacked bar graphs with percentages in this way is useful because as you can see in this problem, by examining this graph you can determine that there is an association between age and blood pressure because as you can see, the older the employee was there were more cases of high blood pressure.

 

Creating a Stacked Bar Graph in SPSS

 

F    Follow these video instructions to fully complete a stacked bar graph:

Unable to display content. Adobe Flash is required.

F