Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

What are the appropriate uses for a grouped vs a stacked bar plot?

share|improve this question
Good question. I have been always confused about their uses. Thanks for asking. – suncoolsu Jan 12 '11 at 2:11

2 Answers

up vote 10 down vote accepted

I think grouped bars are preferable to stacked bars in most situations because they retain information about the sizes of the groups and stay readable even when you have multiple nominal categories. For me, the segments of stacked bars get difficult to compare beyond two categories - and even with just two categories, they can be quite deceptive if your groups are of very different sizes. I'd prefer a frequency table over a stacked bar plot any day.

You should also consider a stacked series of bar plots, with each group in a separate plot and each plot stacked on top of the last (there's an example on this page, referred to as "layered histograms", which I find confusing). This is probably what I use most often. The lattice and ggplot2 packages in R both support this kind of plotting.


Historical note: histograms != bar plots

share|improve this answer
3  
(+1) A possible exception is when we have a set of indicators (e.g., items in a questionnaire) with a fixed number of categories (e.g., Likert-type items), as discussed in Visualizing Likert Item Response Data, or a single crossing factor (e.g., gender), in which case an horizontal (we are better at visually discriminating along the horizontal than the vertical axis) stacked barchart might be interesting, IMO. – chl Jan 11 '11 at 20:39
1  
Excellent point - that mostly negates the concern about varying group sizes, assuming non-response is about even across the questions. I still have difficulty comparing the "slightly concerned" proportions across groups, but the horizontal layout does seem easier. That post is a great resource - thanks for linking it here. – Matt Parker Jan 11 '11 at 20:50
1  
+1 For the distinction between bar charts and histograms. (The difference becomes very clear when you consider how best to plot histograms with varying intervals, as illustrated at stata.com/support/faqs/graphics/histvary.html.) – whuber Jan 11 '11 at 21:52
I updated to reflect I want bar plots not histograms. – Elpezmuerto Jan 12 '11 at 0:58
Grouped bar chart is always preferable to stacked bar chart, because the latter makes the comparison of different series more difficult than the former. A brief discussion about different versions of stacked bar and grouped bar plot (marimekko chart, weighted grouped bar plot, etcetera) with some links can be found here: antoniorinaldi.it/data-visualization-for-two-ways-tables-1 – glassy Jan 13 '11 at 22:02

I don't think there are any appropriate uses of stacked bar charts; grouped bar charts are better, but both are inferior to other plots, depending on what aspect of your data you want to emphasize, and how much data you have.

share|improve this answer
1  
Examples of better plots? – Elpezmuerto Jan 13 '11 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.