{"id":309,"date":"2014-11-10T16:42:32","date_gmt":"2014-11-10T16:42:32","guid":{"rendered":"http:\/\/labmath.org\/?p=309"},"modified":"2014-12-10T14:57:39","modified_gmt":"2014-12-10T14:57:39","slug":"how-to-make-truly-terrible-graphs-a-tutorial","status":"publish","type":"post","link":"http:\/\/labmath.org\/?p=309","title":{"rendered":"Graphing advice"},"content":{"rendered":"<h2 align=\"center\"><strong>How to Make Truly Terrible Graphs: A Tutorial<\/strong><\/h2>\n<p><a href=\"http:\/\/fhs.mcmaster.ca\/ceb\/faculty_member_streiner.htm\">David L. Streiner<\/a>, special guest contributor and co-author of\u00a0<a href=\"http:\/\/books.google.com\/books\/about\/Biostatistics.html?id=y4tWQl_8Ni8C\">excellent statistics texts<\/a><\/p>\n<h3 align=\"center\"><\/h3>\n<h3 style=\"text-align: center;\" align=\"center\">Part 2: Pie in the Sky<\/h3>\n<h4 style=\"text-align: left;\" align=\"center\">To really screw up visual presentations, use a pie chart. Even better, use two or more of them.<\/h4>\n<p>&nbsp;<\/p>\n<p>In <a title=\"Streiner blog 1\" href=\"http:\/\/labmath.org\/?p=231\" target=\"_blank\">my last blog<\/a>, we learned the first step in making truly terrible graphs, by confusing the role of a visual with that of a table. But that barely scratches the surface of how graphing packages can allow us to totally screw up. This blog will examine another widely misused technique: pie charts.<\/p>\n<p>Pie charts are the essence of simplicity. If you have a nominal variable with a number of response options, such as \u201cWhat is the dullest subject you ever studied in college?\u201d, the size of each slice is proportional to the number of people endorsing each alternative, as in the figure below:<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-321\" alt=\"blog2 pic1\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic1.png\" width=\"768\" height=\"255\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>It\u2019s obvious that Economics ranks highest on the list and Psychology at the bottom. (The fact that I\u2019m a psychologist did not influence these fictitious data in the slightest.) That was easy. So what\u2019s there not to like about this; isn\u2019t it as American as, say, apple pie? Well, actually no. To begin with, it\u2019s origins are Scottish, not American, with William Playfair\u2019s 1801 book, <i>The Statistical Breviary<\/i>. Even if we ignore Spence and Wainer\u2019s (2001) description of him as an \u201cengineer, political economist and scoundrel,&#8221; Playfair has much to answer for. The first problem is the cognitive load imposed on the viewers. They have to first find a color on the chart, move over to the legend to see what course it corresponds to, then move on to the next color, and so on. Not too much of a problem when there are only two or three segments, but the task gets more and more difficult as the number of response options increases. Also, with a greater number of segments, the colors are often progressively harder to discriminate from one another. Again, these problems are exacerbated if the chart is thrown up on a screen for only a brief period of time.<\/p>\n<p>\u201cThat\u2019s easy enough to fix up,\u201d I hear you say, \u201cwe\u2019ll just put the labels next to each slice. Problem solved!\u201d Well, not really. That may work if we have a small number of slices, but what will happen when there are a larger number of responses? We can see what happens in the next figure.<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-320\" alt=\"blog2 pic2\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic2.png\" width=\"766\" height=\"235\" \/><\/a><\/p>\n<p>Getting pretty messy, isn\u2019t it? Some of the legends are inside the pie and some are outside. But this is the least of our problems.<\/p>\n<p>Which slice is larger, Biology or Philosophy? It\u2019s not that easy to tell. The problem is that we\u2019re not very good at judging angles. We tend to underestimate acute angles and overestimate obtuse ones. Moreover, the amount of distortion is different, depending on whether the slice is oriented vertically or horizontally (Robbins, 2005). OK, we can solve that \u2013 just include the numbers along with the course names.<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-319\" alt=\"blog2 pic3\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic3.png\" width=\"762\" height=\"231\" srcset=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic3.png 762w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic3-300x90.png 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/a><\/p>\n<p>Did that help? Not really. Now the chart is even more crowded and we\u2019ve violated the lesson from the first blog \u2013 don\u2019t try to turn a figure into a table. A far better way to display these data would be a bar chart:<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-318\" alt=\"blog2 pic4\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic4.png\" width=\"763\" height=\"237\" srcset=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic4.png 763w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic4-300x93.png 300w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/a><\/p>\n<p>This shows the relationships among the courses much more clearly, with little mental effort required by the viewer. Note two other things. First, to make the graph even easier to read, the courses have been put in rank order. Second, because the legends are relatively long, the graph has been turned on its side. The course titles never could have fit along the X-axis without a tremendous amount of clutter; or they would have had to have been written vertically. By putting the graph on its side, the viewers don\u2019t have to lie on their sides to read them.<\/p>\n<p>This reinforces one motto of statisticians: \u201cThe only time a pie chart is appropriate is at a bakers\u2019 convention.\u201d<\/p>\n<p>To echo the cry of TV sales people, \u201cBut wait \u2026 There\u2019s more!\u201d We can screw up even more royally. Quoting the master maven of graphing, Edward Tufte (2001), \u201cthe only thing worse than one pie chart is lots of them.\u201d Let\u2019s say we broke down the data by gender, with a pie chart for females on the left and males on the right:<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-317\" alt=\"blog2 pic5\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic5.png\" width=\"764\" height=\"295\" srcset=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic5.png 764w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/11\/blog2-pic5-300x115.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/a><\/p>\n<p>It\u2019s easy enough to see that females find economics more boring than do males, because both slices start at 12:00 o\u2019clock. But what about art history or sociology? In order to compare men and women, you have to look at a slice, mentally move it over to the other pie, rotate it until the starting edges line up, try to keep the angle constant, and see if the trailing edges line up. This is not difficult \u2013 it\u2019s nearly impossible. Yet again, bar charts would greatly clarify the picture. (By the way, the proportions finding art history and sociology boring are exactly the same.)<\/p>\n<p>So lesson two \u2013 to really screw up visual presentations, use a pie chart. Even better, use two or more of them.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p align=\"center\">References<\/p>\n<p>Robbins, N. (2005). <i>Creating More Effective Graphs<\/i>. New York: Wiley.<\/p>\n<p>Spence, I., &amp; Wainer, H. (2001). William Playfair. In: C. C. Heyde &amp; E. Seneta (Eds.). <i>Statisticians of the Centuries<\/i>, pp. 105\u2013110. New York: Springer.<\/p>\n<p>Tufte, E. (2001). <i>Visual Display of Quantitative Information<\/i> (2<sup>nd<\/sup> ed.). Cheshire, CT.: Graphics Press.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Make Truly Terrible Graphs: A Tutorial David L. Streiner, special guest contributor and co-author of\u00a0excellent statistics texts Part 2: Pie in the Sky To really screw up visual presentations, use a pie chart. Even better, use two or more of them. &nbsp; In my last blog, we learned the first step in making [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,11,4],"tags":[13,39,14],"_links":{"self":[{"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/309"}],"collection":[{"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":11,"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":361,"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions\/361"}],"wp:attachment":[{"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}