{"id":5123,"date":"2010-10-19T09:40:41","date_gmt":"2010-10-19T09:40:41","guid":{"rendered":"http:\/\/scienceblogs.com\/principles\/2010\/10\/19\/line-plot-is-never-the-right-c\/"},"modified":"2010-10-19T09:40:41","modified_gmt":"2010-10-19T09:40:41","slug":"line-plot-is-never-the-right-c","status":"publish","type":"post","link":"http:\/\/chadorzel.com\/principles\/2010\/10\/19\/line-plot-is-never-the-right-c\/","title":{"rendered":"&#8220;Line Plot&#8221; is Never the Right Choice (Why Excel Sucks, aleph-nought in a series)"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-49d8845eeb31b747278427be6acb3161-blog_naep_black_reading_trend.jpg\" alt=\"i-49d8845eeb31b747278427be6acb3161-blog_naep_black_reading_trend.jpg\" \/>There have been a bunch of interesting things written about education recently that I&#8217;ve been too busy teaching to comment on. I was pulling them together this morning to do a sort of themed links dump, when the plot at the right, from <a href=\"http:\/\/motherjones.com\/kevin-drum\/2010\/10\/school-testing-followup\">Kevin Drum&#8217;s post about school testing<\/a> jumped out at me. This shows test scores for black students in various age groups over time, but more importantly, it demonstrates one of my pet peeves about Excel.<\/p>\n<p>If you look at the horizontal axis of this plot, it shows regularly spaced intervals. If you actually read the labels, though, you&#8217;ll see that they&#8217;re anything but regular&#8211; the first few points show test scores at four- or five-year intervals, then there&#8217;s a cluster of two-year intervals, then some more long gaps.<\/p>\n<p>These points are plotted at regular intervals because Kevin used Excel to make the graph (the ugly colors are another dead giveaway), and did what looks like the reasonable thing to do when you want to plot lines connecting your data points, namely choosing &#8220;Line Plot&#8221; from the plot options Excel offers. As I tell my intro physics students over and over, though, &#8220;Line Plot&#8221; is <em>never<\/em> the right choice, because of this exact problem. If you have both x and y values (say, test scores and the years in which those scores were reported), you want &#8220;Scatter Plot,&#8221; which will properly space the data on the horizontal axis. &#8220;Line Plot&#8221; always plots points as evenly spaced, because Excel is designed for middle managers who deal with sales data that occur only at regular intervals (and who secretly hate and fear real math).<\/p>\n<p>What difference does it make? Here&#8217;s the data for 17-year-old students, plotted properly in the <a href=\"http:\/\/nces.ed.gov\/pubsearch\/pubsinfo.asp?pubid=2009479\">original report<\/a>:<\/p>\n<p><!--more--><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-577c73c0dd3299d8f8cdcd7a7253d9f6-naep_scores_scatter.jpg\" alt=\"i-577c73c0dd3299d8f8cdcd7a7253d9f6-naep_scores_scatter.jpg\" \/><\/p>\n<p>In the &#8220;Line Plot&#8221; version, it looks like something incredibly dramatic happened three points into the data series, with scores shooting way up overnight, then abruptly flattening out. Those first few points have twice the interval between them of the next few, though, so they ought to be twice as far apart horizontally. The original plot gets that right, and as a result, the big step up looks far less dramatic, and the flattening-out much less abrupt. There&#8217;s still a fairly clear step, but with the points properly spaced out, this looks a lot more like a small fluctuation above a general slow increase than a one-time dramatic jump in scores.<\/p>\n<p>That doesn&#8217;t mean there isn&#8217;t something interesting going on in the early 1980&#8217;s&#8211; that&#8217;s still a significant increase in a short period&#8211; but when the plot&#8217;s done right, you get a more accurate picture of what&#8217;s going on. Which is to say, a muddled and slightly ambiguous picture that would really benefit from somebody with a time machine going back and getting some data from 1982 and 1986 so we have a clearer idea about what test scores really did in that period. Get on that, social scientists.<\/p>\n<p>And the rest of you, remember: Excel was written for (and possibly by) monkeys, and no matter how reasonable it might seem, &#8220;Line Plot&#8221; is <em>never<\/em> the right choice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There have been a bunch of interesting things written about education recently that I&#8217;ve been too busy teaching to comment on. I was pulling them together this morning to do a sort of themed links dump, when the plot at the right, from Kevin Drum&#8217;s post about school testing jumped out at me. This shows&hellip; <a class=\"more-link\" href=\"http:\/\/chadorzel.com\/principles\/2010\/10\/19\/line-plot-is-never-the-right-c\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Line Plot&#8221; is Never the Right Choice (Why Excel Sucks, aleph-nought in a series)<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"1","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,144,13,28,11,82,75,56],"tags":[],"class_list":["post-5123","post","type-post","status-publish","format-standard","hentry","category-academia","category-data_presentation","category-education","category-politics","category-science","category-socialscience","category-society","category-technology","entry"],"_links":{"self":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts\/5123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/comments?post=5123"}],"version-history":[{"count":0,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts\/5123\/revisions"}],"wp:attachment":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/media?parent=5123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/categories?post=5123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/tags?post=5123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}