{"id":231,"date":"2014-09-26T14:01:48","date_gmt":"2014-09-26T14:01:48","guid":{"rendered":"http:\/\/labmath.org\/?p=231"},"modified":"2014-10-07T15:49:41","modified_gmt":"2014-10-07T15:49:41","slug":"terrible-graphs-how-to","status":"publish","type":"post","link":"http:\/\/labmath.org\/?p=231","title":{"rendered":"Graphing advice"},"content":{"rendered":"<h2 align=\"center\"><strong>How to Make Truly Terrible Graphs: A Tutorial<\/strong><\/h2>\n<p style=\"text-align: center;\"><a href=\"http:\/\/fhs.mcmaster.ca\/ceb\/faculty_member_streiner.htm\">David L. Streiner<\/a>, special guest contributor and co-author of <a href=\"http:\/\/books.google.com\/books\/about\/Biostatistics.html?id=y4tWQl_8Ni8C\">excellent statistics texts<\/a><\/p>\n<h3 align=\"center\">Part 1 \u2013 Introduction<\/h3>\n<p>&nbsp;<\/p>\n<p>In 1968, when I was writing up my doctoral thesis, I needed to make some graphs showing how the different groups changed over time under various conditions. There were no computer programs to draw graphs (indeed, there were no such things as desk-top computers back then), so I had to draw the lines by hand, using special pens and ink, and the symbols and letters were added by rubbing them off special sheets of transfer paper. It took an entire day or more to make a single graph, and few people had the ability to do them (I had the advantage of training in engineering, and having spent five summers working as a draftsman). Consequently, there were relatively few graphs in journals, and those which did appear were simple black and white line charts or bar graphs. Researchers had very little ability to screw things up.<\/p>\n<p>Nowadays, every computer comes equipped with at least one, and often two, graphing packages, and they allow the user to add a host of special effects \u2013 being able to make the graphs look three-dimensional, to have pie charts with segments highlighted by separating them from the rest of the pie, or to use bars of different shapes and colors. Even more options are available if the graphs will be used during a live presentation: you can use many different fonts and colors; text can fly in and out from any direction; and you can add logos from your university, your research unit, and the funding agency at the bottom of every slide. This is in addition to pictures of leaves or keys or some other totally irrelevant (but cutesy) graphic running down the left side. In other words, users are able to screw up graphs in ways that were previously unimaginable.<\/p>\n<p>Unfortunately, few people know how to take full advantage of these features in order to draw truly terrible graphs. Over the next few months, I hope to remedy this parlous situation in this blog and teach you how you, too, can make graphs as bad as those that grace the pages of many daily newspapers and popular magazines. As an added bonus, I will also show you how to make tables that are unnecessarily dense, obscure, and confusing.<\/p>\n<p>The first lesson in bad graphing, and the focus of this blog, is to fail to differentiate between the purpose of a graph and that of a table.\u00a0 Take a look at the graph below. It shows the expenditure per acute hospital bed in seven regions of a province in Canada. Now imagine you\u2019re sitting in a darkened auditorium and this is on the screen for 30 seconds. So look at it for a while and then close your eyes. Now tell me: What was the average for the entire province? What was the expenditure in region C? Which region had the highest expenditure? (Actually, if you can read these questions, you\u2019re cheating, because your eyes must have been open to do so.)<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/bad-graph.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-medium wp-image-275\" alt=\"bad graph\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/bad-graph-300x237.png\" width=\"300\" height=\"237\" srcset=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/bad-graph-300x237.png 300w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/bad-graph-1024x809.png 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I\u2019m willing to bet that if you didn\u2019t peek, you\u2019d have trouble answering the first two questions, but may be able to answer the third. It\u2019s simply impossible to remember all those numbers, except perhaps that they\u2019re somewhere in the range of $60,000 to $80,000, and a lot easier to pick up the fact that Region B is the highest. This illustrates the major difference between a table and a graph \u2013 the former is better for presenting <i>numbers<\/i> and the latter for showing <i>relationships<\/i>. You may be able to get away with a graph such as this one on the printed page, where the reader has the luxury of staring at it as long as he or she wants, but it would be a disaster if it were shown during a talk. There\u2019s just too much information for the viewer to absorb in just 30 seconds or so. If you want the audience to come away with the message that there are large differences among the regions (and that\u2019s all they will remember one hour later), then kill the numbers.<\/p>\n<p>In fact (and jumping ahead a bit), we can make the message even stronger. Because Region is a nominal variable, the order doesn\u2019t matter, so let\u2019s make the audience\u2019s task easier by rank ordering the regions, and we get a graph like this one:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/good-graph.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft  wp-image-274\" alt=\"good graph\" src=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/good-graph.png\" width=\"296\" height=\"231\" srcset=\"http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/good-graph.png 1175w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/good-graph-300x234.png 300w, http:\/\/labmath.org\/wp-content\/uploads\/2014\/09\/good-graph-1024x799.png 1024w\" sizes=\"(max-width: 296px) 100vw, 296px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Now the message comes through loud and clear \u2013 there are large differences among the regions, where B is the clear winner and E gets shafted. So the take-home messages are: (1) be clear what you want to communicate, (2) use tables to show numbers, (3) graphs should be used to show relationships, and (4) do everything possible to make it easy for the audience.<\/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 excellent statistics texts Part 1 \u2013 Introduction &nbsp; In 1968, when I was writing up my doctoral thesis, I needed to make some graphs showing how the different groups changed over time under various conditions. There were no [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,4],"tags":[],"_links":{"self":[{"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/231"}],"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=231"}],"version-history":[{"count":24,"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":247,"href":"http:\/\/labmath.org\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions\/247"}],"wp:attachment":[{"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/labmath.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}