When to Use Stacked Barcharts?

this article has moved: https://solomonmg.github.io/blog/2014/when-to-use-stacked-barcharts/


											

About Solomon

Political Scientist, Facebook Data Science
This entry was posted in R. Bookmark the permalink.

12 Responses to When to Use Stacked Barcharts?

  1. TBH even these examples require more to illuminate. The campaign style chart gives the impression that all methods are equally important whilst ‘Endorsements’ might still be 50x more important than ‘Saring Content’ even for Democrats

  2. John Blommers says:

    The R code does not run. The first error is in line 12. Where does the data come from that drives the code?

  3. I have had a look now. As you say, gives context. Some elegant combo of the two tables in that section would be interesting

  4. edomaniac says:

    The last one has me thinking a bit. It seems it would be of interest in a traditional 5 point rating scale (agree/disagree) situation if you were interested in polarity (or lack thereof) in responses. It seems that this information could be informative where just plotting the means (probably via dot plot as you advocate) might obscure some differences in response styles to questions. Am I on the wrong track? And are there any issues with such an approach?

    • Solomon says:

      I think the use case you describe is great. But you might run into problems if you’re interested in the difference in the distribution across subgroups. If you were to examine the proportion of responses across each the 5 levels of agreement when you look at each of those contrasts you can quickly run into multiple comparisons issues, especially when it comes to post-hoc analyses (e.g., if you were to look at every possible subgroup in your data set). This is less of an issue when your contrasting just the mean of (ideally a battery of) 5 point responses. Note that it’s also less of an issue when you are working with larger data sets that yield more precise estimates.

      • edomaniac says:

        Awesome. Your point is well taken. I was thinking of it more as a descriptive tool than anything. I work as a consultant and I’m trying to get my colleagues to use R and ggplot more often in their reports, because as you’ve noted elsewhere, it helps explain data to non-experts (I’m a relative newcomer to R having been trained primarily on SPSS). The standard now seems to be to hit clients over the head with frequencies or means until their eyes glaze over, so I’m always looking for new potential graphs to make things more intelligible.

  5. edomaniac says:

    One other question. Should there be a corresponding dataset for the code? Perhaps that should be included in the “party” object?

  6. Solomon says:

    I just posted the code as an example.

    • edomaniac says:

      Awesome, no worries. It just helps a bit for me to see what the data look like before I get to manipulating. I’ll play around with the code and make something work. Thanks for posting this stuff, I’ll keep reading.

  7. Pingback: Dime, ¿qué quieres comparar con qué? – datanalytics

  8. Pingback: Notes on Data Visualization – D3.js – data | poly

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s