<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>A (personal) blog of data sketches from the New York Times Graphics Department. Maintained  by @KevinQ.</description><title>chartsnthings</title><generator>Tumblr (3.0; @chartsnthings)</generator><link>http://chartsnthings.tumblr.com/</link><item><title>When you suck at making maps, this is cause to celebrate.</title><description>&lt;img src="http://24.media.tumblr.com/bc0bdae3e1974fd75a5a083e3277c729/tumblr_mmx4hbgZXU1r5aoz1o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;When you suck at making maps, this is cause to celebrate.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/50617551432</link><guid>http://chartsnthings.tumblr.com/post/50617551432</guid><pubDate>Thu, 16 May 2013 21:07:59 -0400</pubDate><category>blamo</category></item><item><title>Sketches from Money on the Bench</title><description>&lt;p&gt;On Monday we published something a little different than most of the graphics we make – a &lt;a href="http://www.nytimes.com/interactive/2013/05/13/sports/baseball/money-on-the-bench.html?smid=tw-nytimes" title="Money on the Bench"&gt;running, updating tracker&lt;/a&gt; of how much money major league teams are paying to players on the disabled list.&lt;/p&gt;
&lt;p&gt;I love sports, but I&amp;#8217;m not a huge baseball fan and I&amp;#8217;m neutral on the Yankees scale – I don&amp;#8217;t really hate them but I can&amp;#8217;t say I care whether they win or lose. But early in the year, I remember seeing a fun New Yorker cover that planted a seed:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://www.newyorker.com/online/blogs/culture/130408_2013_p465.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Talking to some friends and colleagues, Joe Ward and I thought it would be fun to do something that put a dollar figure on the Yankees&amp;#8217; disabled list. We certainly weren&amp;#8217;t the first people to notice this – in addition to coverage from traditional outlets, the Onion &lt;a href="http://www.theonion.com/articles/yankees-disabled-list-absolutely-stacked,32100/" title="onion"&gt;wrote about&lt;/a&gt; how &amp;#8220;stacked&amp;#8221; the D.L. was and there was a well-circulated &lt;a href="http://itsaboutthemoney.net/archives/2013/05/01/update-yankees-dld-payroll-nearing-100m/" title="bloggy"&gt;blog post&lt;/a&gt; when their payroll approached $100 million in annual salaries – but we wanted to make something that showed all major league teams and was updated throughout the season. To do that, you only need two data sources: &lt;a href="http://www.baseballprospectus.com/compensation/" title="sal;aries"&gt;salaries for every player&lt;/a&gt; in the league and &lt;a href="http://mlb.mlb.com/mlb/transactions/#month=5&amp;amp;year=2013" title="transactions"&gt;a list&lt;/a&gt; of all major league transactions, both of which are updated regularly.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We wanted users to be able to find their own team, but also to see the big picture. Some of our original sketches focused on the amount spent per team per day. Below, a chart where each line represents one team&amp;#8217;s amount paid to players per day (the jumps and dips represent players coming on and off the list):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7283/8741388365_3678ddca6b_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Another sketch showed the teams as small multiples:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7288/8741388237_ce4c57de55_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;And another used stacked bars (poorly):&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7288/8741388423_4f1fbe8be0_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Or one that just showed the players on the bench and how long they&amp;#8217;d been on it, regardless of team or salary:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7292/8742503812_cfa859b504_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;But the one that stuck out the most in the end was the simplest – an aggregate per-team calculation:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7284/8741388157_8a6c25abcc_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;With that, we started developing things in the browser. The following are sketches made with D3 based on the previous R charts.&lt;/p&gt;
&lt;p&gt;Originally, this started as an idea for a phone with just a couple numbers per team. (These sketches are old and the numbers are calculated incorrectly&amp;#8230; I screwed some things up.)&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7282/8741388781_24c2996f0e_o.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But we also wanted to see individual players. Here, a first attempt at the data join in D3:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7290/8741388665_1c450ab105_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Later, hooking it up to real salary data:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7294/8742504362_4ff85264a9_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;And making it a little less boring (or &amp;#8220;adding sugar,&amp;#8221; as Shan says)&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7294/8741388553_baf90e5200_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Before coming to the version that&amp;#8217;s online now:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7290/8743373910_4fa8d35731_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;We still kept a mobile view that I think turned out as well or better than the desktop version:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7281/8742411243_ddfcb3dabd_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;Is this an earth-shattering example of data journalism? I suppose it is not. It&amp;#8217;s two data sets, a timer and and a giant photograph of A-Rod updated a couple times a day. But I must say I like it. It&amp;#8217;s fun and engaging for the users it&amp;#8217;s aimed at; it&amp;#8217;s not tied to a single news event but it&amp;#8217;s not aimless either; it was developed and published in less than two weeks; it works on all sorts of devices and it updates every day (originally an R script running on a crontab, now a node script). It&amp;#8217;s also a good example of using D3 to make data-driven applications without using SVG at all.&lt;/p&gt;
&lt;p&gt;Normally I show what we did in print, but in this case, we didn&amp;#8217;t make anything. Most of the fun of this is seeing the numbers tick up in front of you (Shan&amp;#8217;s idea) as you&amp;#8217;re on the page. In print, it&amp;#8217;s just another bar chart. At the same time, if something happens, we&amp;#8217;ll be ready on short notice with all the data we need.  &lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/50552480924</link><guid>http://chartsnthings.tumblr.com/post/50552480924</guid><pubDate>Wed, 15 May 2013 23:28:00 -0400</pubDate><category>Joe Ward</category><category>shan carter</category><category>baseball</category><category>D3</category><category>R</category><category>data sketches</category></item><item><title>Made at 5:44, trashed at 5:45.</title><description>&lt;img src="http://24.media.tumblr.com/671311d840f0bea956ea0f1276b9a664/tumblr_mm8t9cyHyc1r5aoz1o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Made at 5:44, trashed at 5:45.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/49540643903</link><guid>http://chartsnthings.tumblr.com/post/49540643903</guid><pubDate>Fri, 03 May 2013 18:03:12 -0400</pubDate><category>chart junk</category></item><item><title>NFL Draft Part II</title><description>&lt;p&gt;Since we had already done some of the data work with the interactive graphic, we were able to turn around a quick chart after the draft. Below, some charts about what kind of players were drafted in the first round this year. (Nine offensive lineman and no running backs, both records.)&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7054/8689497632_079eb9bb1a_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;In print, below, and on the NYT&amp;#8217;s &lt;a href="http://fifthdown.blogs.nytimes.com/2013/04/26/some-firsts-in-the-first-round/" title="Fifth Down blog" target="_blank"&gt;Fifth Down blog&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7049/8690129303_910b08a3b8_o.png"/&gt;&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/49406825759</link><guid>http://chartsnthings.tumblr.com/post/49406825759</guid><pubDate>Wed, 01 May 2013 22:02:00 -0400</pubDate><category>Joe Ward</category><category>R</category><category>N.F.L. Draft</category></item><item><title>Charting Skill and Chance in the N.F.L. Draft </title><description>&lt;p&gt;Last week we published an &lt;a href="http://www.nytimes.com/interactive/2013/04/25/sports/football/picking-the-best-in-the-nfl-draft.html" title="link" target="_blank"&gt;interactive graphic&lt;/a&gt; about the N.F.L. draft. Our goal was to show an odd reality: even though N.F.L. teams do tend to pick the &amp;#8220;best&amp;#8221; players early in the draft, there&amp;#8217;s a tremendous amount of chance involved. The best 10 eventual N.F.L. performers will not be the first 10 players drafted – or even close.&lt;/p&gt;
&lt;p&gt;How to know that both of these are true and decide which is most important? We used &lt;a href="http://www.pro-football-reference.com/draft/" title="draft data" target="_blank"&gt;draft&lt;/a&gt; and &lt;a href="http://www.pro-football-reference.com/blog/?page_id=518" title="performance" target="_blank"&gt;performance&lt;/a&gt; data from &lt;a href="http://pro-football-reference.com" title="http://www.pro-football-reference.com" target="_blank"&gt;pro-football-reference.com&lt;/a&gt;. (One note: N.F.L. performance is hard to measure across positions – how do you decide if a tight end is &amp;#8220;better&amp;#8221; than a linebacker or a defensive tackle? Most analyses use a combination of games started and pro bowls; the one developed by &lt;a href="http://www.pro-football-reference.com/blog/?page_id=518" title="methods" target="_blank"&gt;pro-football-reference&lt;/a&gt; uses both of those but has some fine-tuning by position.)&lt;/p&gt;
&lt;p&gt;So, for for every pick in the draft, we have one number encompassing their N.F.L. performance. Here are the top 20 since 1995:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" class="small-image" src="http://farm9.staticflickr.com/8259/8693252132_150c6a81d2.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s a first sketch, where every dot represents one player. The Y axis is &amp;#8220;how good&amp;#8221; every player is, and the X axis is where in the draft they were selected. I actually screwed something up here – there aren&amp;#8217;t more than 250 or so picks in a draft – but otherwise the distribution is more or less right:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8538/8693251984_bd2c9edc7e_c.jpg"/&gt;My colleague Mike Bostock cleaned this up by coloring the picks by round and adding some labels:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7055/8689657170_a19e597d27_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Although that shows all the data, it&amp;#8217;s too noisy to really interpret. Wanting to simplify this, I tried taking the average of all players who went at a certain round and certain pick – here, each dot represents the average value of all players at a certain pick (for example, the players drafted at Round 1, Pick 1, or Round 2, Pick 13). As before, the dots are colored by round:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7047/8688378359_4cfe2b1b9a_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;The dot on the top-left represents the average value of &lt;strong&gt;all&lt;/strong&gt; first picks in the draft since 1995 – on average, this group, which includes Peyton Manning, Cam Newton, Andrew Luck, Michael Vick, Keyshawn Johnson and others, clearly outperforms the other picks. (This is might be obvious, but then again, the group also includes Tim Couch and &lt;a href="http://www.pro-football-reference.com/players/R/RussJa00.htm" title="J. Russell"&gt;JaMarcus Russell&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;I admit I liked this chart more than I probably should have. (My colleagues corrected me!) Averaging this way is a little misleading because every round doesn&amp;#8217;t have the same number of picks (the league has grown and there are extra picks at the end of each round, which leads to some funny business with the math), and hiding the distribution oversimplifies things a little. But this chart does make a simple point – the better players tend to go first.&lt;/p&gt;
&lt;p&gt;Instead, Mike offered a boxplot, which shows the distribution without being so noisy:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" class="small-image" src="http://farm9.staticflickr.com/8530/8689657318_355054d8f7_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;Even this was a little too busy for the point we wanted to make, so we settled for a small bar chart.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" class="small-image" src="http://farm9.staticflickr.com/8124/8695066888_7718e10e2d_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;What we wanted to focus on was the reality that there&amp;#8217;s much more randomness in the draft than people realize. &lt;a href="https://twitter.com/bcmassey" title="Cade Massey"&gt;Cade Massey&lt;/a&gt; and Richard H. Thaler, behavioral psychologists, analyzed the draft and found that not only is there no persistent skill among teams in picking players – teams have good years and bad years in equal measure – but that across all players and positions, teams only picked a player better than the person who went next at that position 52 percent of the time. Their academic paper is &lt;a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=697121" title="losers curse" target="_blank"&gt;here&lt;/a&gt;, but Massey explained this in a much more accessible way in a &lt;a href="http://www.sloansportsconference.dreamhosters.com/?p=1619" title="video" target="_blank"&gt;recent talk&lt;/a&gt; at the Sloan/MIT sports analytics conference. &lt;/p&gt;
&lt;p&gt;I took a stab at replicating some of their findings just to see what it would look like. Here&amp;#8217;s a rough chart of the percentage of teams picking a player who ended up being better than the guy drafted after him at the same position. For example, if you chose Peyton Manning (Pick 1 in the 1998 draft) over &lt;a href="http://www.pro-football-reference.com/players/L/LeafRy00.htm" title="Leaf" target="_blank"&gt;Ryan Leaf&lt;/a&gt; (Pick 2), your guy is better than the next guy at that position, but if you chose &lt;a href="http://www.pro-football-reference.com/players/W/WynnSp00.htm" title="Spergon!" target="_blank"&gt;Spergon Wynn&lt;/a&gt; (Pick 183 in the 2000 draft) over Tom Brady (Pick 199), you did not. (Sorry, Cleveland Browns.)&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" class="small-image" src="http://farm9.staticflickr.com/8399/8690910724_f07079eb3f_z.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Simply put, teams don&amp;#8217;t pick the &amp;#8220;right&amp;#8221; player as often as you think, and tend to do better than a coin flip only in the first round. This chart goes under 50 percent after the third round, but that reflects some noise in the data towards the end of the draft – most of these players don&amp;#8217;t actually get in the game, so it&amp;#8217;s not very meaningful to say that one benchwarmer is marginally better than another. But this concept is hard to explain in a chart like this (the title would be something like &amp;#8220;percent of players who were better than the next player at the same position by round&amp;#8221;), so we took a simpler approach.&lt;/p&gt;
&lt;p&gt;I had been tinkering on a version of a chart I had that showed where the best eventual players were drafted:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7043/8688378777_47deecf975_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;This chart highlights where the 10 &amp;#8220;best&amp;#8221; players in each draft were picked. My colleague Joe Ward thought it would look good in print, where we have more space, and this chart ended up closely resembling what was eventually printed:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7046/8690129489_f571afd745_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;Online, Shan Carter suggested an interface that showed this uncertainty with two sentences: the percent of the best players that came in the first round and the percent that came after:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8394/8693252042_83b18b9893_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;A slider and about a hundred commits later, you have an tool that lets you explore where the best N players from the draft came from every year.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7046/8690145797_db01ca107e_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;Mike also made a similar implementation based on the &lt;a href="http://bost.ocks.org/mike/shuffle/" title="whaa?"&gt;Fisher-Yates shuffle&lt;/a&gt;, which is a thing I learned about when he showed me, but it wasn&amp;#8217;t the right application for this data, and anyway it was getting too late to change our minds:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm8.staticflickr.com/7049/8688538281_ebd9709004_c.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;These charts and sketches were made in R and D3. Normally, at the end of these posts, I write about how other people implemented the best parts of this graphic, but this time it&amp;#8217;s especially true. &lt;/p&gt;
&lt;p&gt;One of the great things about working in a department with a staff of 25 people is that you can be in big trouble three days before something publishes. Then you make a phone call to San Francisco and everything works out fine.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/49236510636</link><guid>http://chartsnthings.tumblr.com/post/49236510636</guid><pubDate>Mon, 29 Apr 2013 23:58:00 -0400</pubDate><category>D3</category><category>R</category><category>shan carter</category><category>Mike Bostock</category><category>Joe Ward</category><category>data sketches</category><category>N.F.L. Draft</category></item><item><title>…
Time for bed.</title><description>&lt;img src="http://24.media.tumblr.com/60d8630be41e90d09c27eec601c8ea3b/tumblr_mlqm0vIMNb1r5aoz1o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;…&lt;/p&gt;
&lt;p&gt;Time for bed.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/48743137564</link><guid>http://chartsnthings.tumblr.com/post/48743137564</guid><pubDate>Tue, 23 Apr 2013 22:10:07 -0400</pubDate><category>accidents</category></item><item><title>Nasty pitchers </title><description>&lt;p&gt;A couple weeks back, we used &lt;a href="http://www.brooksbaseball.net/" title="PitchFX" target="_blank"&gt;PitchFX data&lt;/a&gt; to show the relative &amp;#8220;nastiness&amp;#8221; (for lack of a better word) of the Mets&amp;#8217; pitcher Matt Harvey. The chart below shows pitches that batters swung at outside the strike zone during a &lt;a href="http://www.nytimes.com/2013/04/12/sports/baseball/mets-matt-harvey-and-his-fastball-earn-notice.html" title="NYT story" target="_blank"&gt;recent game&lt;/a&gt; against the Phillies. &lt;/p&gt;
&lt;p&gt;&lt;span&gt;I made some sketches, Joe Ward did the rest:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8117/8674015680_8263d12393_c.jpg"/&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8253/8669303951_289628bd5b_c.jpg"/&gt;&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/48653050025</link><guid>http://chartsnthings.tumblr.com/post/48653050025</guid><pubDate>Mon, 22 Apr 2013 20:27:00 -0400</pubDate><category>R</category><category>data sketches</category><category>Joe Ward</category><category>baseball</category></item><item><title>Climate Change,  Crowbars and Strikeouts </title><description>&lt;p&gt;Just over a week ago we &lt;a href="http://www.nytimes.com/interactive/2013/03/29/sports/baseball/Strikeouts-Are-Still-Soaring.html?ref=baseball" title="Strikeouts graphic" target="_blank"&gt;published a graphic&lt;/a&gt; – more of an interactive short blog post without a blog, really – that accompanied &lt;a href="http://www.nytimes.com/2013/03/31/sports/baseball/swing-and-a-mystery-why-strikeout-rates-are-soaring.html?pagewanted=all" title="Why Strikeouts Are Soaring" target="_blank"&gt;Tyler Kepner’s piece about strikeouts&lt;/a&gt; for the Times’ 2013 baseball preview. The subject of both pieces was the steep increase in strikeouts across the board in the past decade: last year, ten Major League clubs set franchise records for strikeouts.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The fact Tyler came to us with was one he’d found on his own: 18 teams struck out at least 1,200 times last season; through 2005, there had never been a season in which more than two teams topped that total. Below, the first sketch, based on that stat – the number of teams with 1,200 strikeouts or more in a season going back to 1968:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8541/8616534959_af20c85d6e_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That’s a compelling chart, but it’s also a little misleading because the league has expanded a few times and not all seasons are the same length.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Instead, &lt;a href="http://www.twitter.com/wardnyt" title="Joe Ward" target="_blank"&gt;Joe Ward&lt;/a&gt; and I thought about making small multiples of the teams and arranging them in a sort of histogram, sort of like my colleague Bill Marsh &lt;a href="http://www.nytimes.com/interactive/2012/11/10/opinion/20101104_POLL-MARSH.html?ref=sunday-review" title="Exit poll chart" target="_blank"&gt;did with exit polls&lt;/a&gt; in 2008 and 2012.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here are the first nine teams in alphabetical order, with the league average in grey:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8261/8636758990_a32e48a10c_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;We didn’t really care for these, and I complained about it to my colleague and cubicle-partner &lt;a href="http://www.twitter.com/aliciadesantis" title="Alicia" target="_blank"&gt;Alicia Desantis&lt;/a&gt;, who suggested I make it look like the climate change “hockey stick charts.” (FYI, The image below, one of the better ones from Wikipedia, is meant to convey the form, not wade into the “&lt;a href="http://en.wikipedia.org/wiki/Hockey_stick_controversy" title="hockey stick"&gt;Hockey Stick controversy&lt;/a&gt;“ if you believe there is one.)&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/91/IPCC_2001_TAR_Figure_2.20.png/800px-IPCC_2001_TAR_Figure_2.20.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here’s what the first R sketch of that idea looked like – every team’s average strikeouts per game per year. (Red is the league average.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8104/8636778352_d351a3bb31_o.png"/&gt;&lt;/p&gt;

&lt;p&gt;At this point, we had a chart we liked and the process went forward like many of our other projects do. However, there was a key difference with this one that’s worth mentioning - all the rest of the sketches, edits and and design improvements happened in a web browser. (More on this later.)&lt;/p&gt;
&lt;p&gt;Here are a few successions of this chart, made using D3:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Checkin #2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8381/8635712389_cbcdcf91e2_o.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Checkin #6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8264/8636817810_dbc33ae970_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Checkin #22&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8405/8635712495_2df5833fd5_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As it appeared when published (Checkin #142)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8380/8636817680_5eb3e54ecc_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;UPDATE, now with more Voronoi, as per &lt;a href="https://twitter.com/mbostock/status/322173547806072833" title="more cowbell" target="_blank"&gt;Mike’s request&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm9.staticflickr.com/8257/8639471290_27326ee61c_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A few final technical notes worth mentioning:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Getting this data from baseball-reference.com requires a bit of scraping, and this project sold me for life on R’s &lt;a href="http://cran.r-project.org/web/packages/XML/index.html" title="XML" target="_blank"&gt;XML&lt;/a&gt; package, which makes scraping fast and shamefully easy. &lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the final project, there are three interactive charts and a table on the page, and they are all generated in D3 with just one data file. The whole chart form – line selection, tooltip, calculating averages – is easily abstracted out, and for the first time I felt some of the same sketching power in a browser that I’d seen only with R: the concept that if you can make one chart, you can make a hundred with the same effort. But with D3, the sketches are already in a browser and wired for interaction! From a development point of view, it felt tremendously powerful. (For many of you this might be obvious, but old habits die hard.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, thanks to the open-source &lt;a href="http://nytimes.github.io/svg-crowbar/" title="SVG crowbar"&gt;SVG Crowbar bookmarklet&lt;/a&gt; developed by &lt;a href="http://www.twitter.com/shancarter" title="Shan twitter" target="_blank"&gt;Shan Carter&lt;/a&gt;, this project represented a recent change in development process, for me, at least. Instead of developing both print and online charts separately, we were able to generate all the charts for print in a web browser at precisely the sizes we wanted, then save them down to Illustrator. Aside from being a useful shift in thinking, it saved a ton of time. (This isn’t the first time the department has done something like this – just the first time I did.)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example, we included the small multiples in print, but we made them in D3 first:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8393/8638269405_63195e5011_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here’s the two-page spread in print. Again, all these charts were produced in a browser, saved to SVG and edited lightly in Illustrator.&lt;/span&gt;&lt;img alt="image" src="http://farm9.staticflickr.com/8244/8635781909_435707f7bd_b.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, for the record, most of the best parts of this graphic were made by Shan while I was on vacation (with standard last-minute triage from Amanda Cox and Mike Bostock), and all the meaningful annotation was from Joe Ward, who, did you know, &lt;a href="http://www.sloansportsconference.com/?p=9794" title="Joe Ward" target="_blank"&gt;played D1 baseball and was a scout for the Cleveland Indians&lt;/a&gt; before coming to the Times?&lt;/span&gt;&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/47670081904</link><guid>http://chartsnthings.tumblr.com/post/47670081904</guid><pubDate>Wed, 10 Apr 2013 22:15:00 -0400</pubDate><category>R</category><category>D3</category><category>Joe Ward</category><category>data sketches</category><category>baseball</category></item><item><title>Passive-agressive charting</title><description>&lt;img src="http://24.media.tumblr.com/64643decd3809251893d0e3325bbc098/tumblr_mksn0m2vmY1r5aoz1o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Passive-agressive charting&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/47225531769</link><guid>http://chartsnthings.tumblr.com/post/47225531769</guid><pubDate>Fri, 05 Apr 2013 18:50:50 -0400</pubDate></item><item><title>It's been a while</title><description>&lt;p&gt;&lt;span&gt;Alas, it has been nearly three months since the last Chartsnthings post. Rest assured, there are some interesting things in the hopper. We have &lt;a href="http://www.youtube.com/watch?v=yoy4_h7Pb3M"&gt;top men&lt;/a&gt; and women working on the situation. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;While you&amp;#8217;re waiting, why not look at a terrible connected scatterplot I threw away this afternoon? (Axis labels have been removed to protect the innocent.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm9.staticflickr.com/8111/8590385887_16b86d6dd7_b.jpg"/&gt;&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/46305392598</link><guid>http://chartsnthings.tumblr.com/post/46305392598</guid><pubDate>Mon, 25 Mar 2013 22:20:52 -0400</pubDate><category>terrible delays</category></item><item><title>New Yorkers in the N.B.A.</title><description>&lt;p&gt;On Christmas we published an &lt;a href="http://www.nytimes.com/interactive/2012/12/24/sports/basketball/pick-your-all-time-new-york-city-nba-team.html" title="All NY NBA" target="_blank"&gt;interactive game&lt;/a&gt; of sorts that lets you pick your own all-time team of New Yorkers who went on to the N.B.A, along with a &lt;a href="http://www.nytimes.com/interactive/2012/12/24/sports/basketball/new-yorks-best-basketball-players-as-picked-by-insiders.html?ref=basketball" title="Notable picks" target="_blank"&gt;selection of teams&lt;/a&gt; from some notable pundits and former players. There weren&amp;#8217;t really a lot of sketches to post, but for me, the best part of the project was looking through old N.B.A. photographs from the NYT archives and, in some cases, from the players&amp;#8217; colleges. (Below, &lt;a href="http://www.basketball-reference.com/players/b/bolgebi01.html" title="Bill Bolger" target="_blank"&gt;Bill Bolger&lt;/a&gt;, courtesy of Georgetown University.)&lt;/p&gt;
&lt;p&gt;&lt;img alt="Bolger" class="bolger" src="http://farm9.staticflickr.com/8356/8354523731_511cd1e2eb_c.jpg" width="343"/&gt;&lt;/p&gt;
&lt;p&gt;The project didn&amp;#8217;t end up being a real hit traffic-wise, possibly because people were spending time with their loved ones on Christmas rather than playing games on the internet, or possibly because the actual audience is relatively small. Still, it was worth it for me – this feature had a lot of new features we hope to use again, including  customized sharing and, I think, a good integration of &lt;a href="http://isotope.metafizzy.co/" title="Isotope" target="_blank"&gt;Isotope&lt;/a&gt; – some of these features were used again on Interactive News&amp;#8217;s &lt;a href="http://www.nytimes.com/interactive/2012/12/31/business/media/the-year-on-page-1.html?ref=multimedia" title="Page 1" target="_blank"&gt;Year on Page 1&lt;/a&gt; project. I also got much better at scraping with R&amp;#8217;s &lt;a href="http://cran.r-project.org/web/packages/XML/index.html" title="XML" target="_blank"&gt;XML package&lt;/a&gt;, and I&amp;#8217;ll try to post a demo here soon.&lt;/p&gt;
&lt;p&gt;Finally, if you can&amp;#8217;t tell, Dan Nguyen&amp;#8217;s &lt;a href="http://projects.propublica.org/sopa/" title="Sopa Opera" target="_blank"&gt;SOPA Opera&lt;/a&gt; was an obvious design inspiration for this.  &lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/39871297005</link><guid>http://chartsnthings.tumblr.com/post/39871297005</guid><pubDate>Sun, 06 Jan 2013 17:15:28 -0500</pubDate><category>nyt</category><category>isotope</category><category>R</category></item><item><title>Interview for Source on 'Snow Fall'</title><description>&lt;a href="http://source.mozillaopennews.org/en-US/articles/how-we-made-snow-fall/"&gt;Interview for Source on 'Snow Fall'&lt;/a&gt;: &lt;p&gt;&lt;a href="http://grahaphics.tumblr.com/post/39426825304/interview-for-source-on-snow-fall" class="tumblr_blog"&gt;grahaphics&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;A Q&amp;A with the New York Times team&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://chartsnthings.tumblr.com/post/39427610195</link><guid>http://chartsnthings.tumblr.com/post/39427610195</guid><pubDate>Tue, 01 Jan 2013 20:02:23 -0500</pubDate></item><item><title>Modeling an avalanche</title><description>&lt;p&gt;Last week I &lt;a href="http://chartsnthings.tumblr.com/post/38556382963/making-a-mountain-out-of-a-mountain-of-data" title="data mountain" target="_blank"&gt;posted a video&lt;/a&gt; from Jeremy White, loosely describing how he turned LIDAR data into a stunning model of Tunnel Creek. But more modeling yet went into showing exactly where the avalanche happened and how it traveled. My colleague &lt;a href="http://www.twitter.com/grahaphics"&gt;Graham Roberts&lt;/a&gt; added trees, elevation lines and an actual model of the avalanche – its shape, depth, and size — as it flowed down the mountain. (The &lt;a href="http://www.slf.ch/english_EN" title="Swiss Federal Institute" target="_blank"&gt;Swiss Federal Institute for Snow and Avalanche Research&lt;/a&gt; created the model specifically for this project.)&lt;/p&gt;
&lt;p&gt;Below, a set of drafts that show the animation at various points along completion. These are courtesy of Graham, who rendered these in 3D, and &lt;a href="http://www.twitter.com/hfairfield" title="Hannah" target="_blank"&gt;Hannah Fairfield&lt;/a&gt;, one of the project&amp;#8217;s editors.&lt;/p&gt;
&lt;p&gt;&lt;iframe frameborder="0" height="600" src="http://www.youtube.com/embed/b2DKkGgu_tg" width="800"&gt;&lt;/iframe&gt; &lt;iframe frameborder="0" height="450" src="http://www.youtube.com/embed/HmWG8dcvbLs" width="800"&gt;&lt;/iframe&gt; &lt;iframe frameborder="0" height="450" src="http://www.youtube.com/embed/8uM7xSkTFYI" width="800"&gt;&lt;/iframe&gt;&lt;/p&gt;

&lt;p&gt;Contrast these to the version that made it into the project (I failed at internet in trying to post that video here, but it looks better on the &lt;a href="http://www.nytimes.com/projects/2012/snow-fall/#/?part=blur-of-white" title="Blur of White" target="_blank"&gt;Snow Fall page&lt;/a&gt; anyway). You&amp;#8217;ll see that they added elevation lines, toned back the background sound a bit and added a faint &amp;#8220;tick&amp;#8221; to help show the speed of the avalanche as it moved down the mountain. &lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/39228441872</link><guid>http://chartsnthings.tumblr.com/post/39228441872</guid><pubDate>Sun, 30 Dec 2012 13:09:00 -0500</pubDate><category>Graham Roberts</category><category>Hannah Fairfield</category><category>3d</category><category>snow fall</category></item><item><title>Making a mountain out of a mountain of data</title><description>&lt;p&gt;The NYT published its &lt;a href="http://www.nytimes.com/projects/2012/snow-fall/#/?part=tunnel-creek" title="Snow Fall" target="_blank"&gt;Snow Fall&lt;/a&gt; project this week. (You&amp;#8217;ve seen it, right?)  It&amp;#8217;s a large, immersive and complex multimedia storytelling piece by more than a &lt;a href="https://twitter.com/Duenes/status/281964978456637440" title="Bylines" target="_blank"&gt;dozen people&lt;/a&gt;. I had zero (zilch, none, undefined) to do with it, but I do have a blog, and Jeremy White, one of the folks responsible for the 3D animated flyover in the first chapter (it&amp;#8217;s a video, not a gif), made a relatively face-melting video showing how it came to pass:&lt;/p&gt;
&lt;p&gt;&lt;iframe frameborder="0" height="480" src="http://www.youtube.com/embed/XooihkrtUAM" width="800"&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;For those interested in making these on your own, it may be dispiriting to learn that Jeremy is all-but-dissertation in a PhD program for cartography and we are not. But he told me he didn&amp;#8217;t use a ton of proper GIS for this – mostly 3D and data skills. (I don&amp;#8217;t buy it totally, but whatever.)&lt;/p&gt;
&lt;p&gt;In short, he made a 3D mesh in &lt;a href="http://usa.autodesk.com/3ds-max/" title="3ds max" target="_blank"&gt;3ds max&lt;/a&gt; from &lt;a href="http://www.kingcounty.gov/operations/GIS/GISData/Metadata/Elevation.aspx" title="King County Lidar Data" target="_blank"&gt;King County LIDAR data&lt;/a&gt;, added and georeferenced satellite imagery from the USGS, added some snow and atmospheric conditions (like fog) with &lt;a href="http://www.chaosgroup.com/en/2/vray.html" title="v-ray" target="_blank"&gt;V-Ray&lt;/a&gt;, thew in a touch of color correction, sent it to the department&amp;#8217;s render farm (16 Mac Pros), and 48 hours later, boom, a 43 second video. Simple! (Obviously, it&amp;#8217;s not; it took weeks.)&lt;/p&gt;
&lt;p&gt;For those of you with extreme technical questions, Jeremy&amp;#8217;s &lt;a href="http://www.twitter.com/blueshirt" title="Jeremy on twitter" target="_blank"&gt;on Twitter&lt;/a&gt; and he loves talking about this stuff all day long. I sit right next to him, so I know.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/38556382963</link><guid>http://chartsnthings.tumblr.com/post/38556382963</guid><pubDate>Sat, 22 Dec 2012 13:07:00 -0500</pubDate><category>Jeremy White</category><category>Snow Fall</category></item><item><title>My colleague Jonathan Corum writes about drawing sign language...</title><description>&lt;img src="http://25.media.tumblr.com/5323875b4d12e9ec1193666c42a0d9bb/tumblr_menbv1nPdz1r5aoz1o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;My colleague &lt;a href="http://www.twitter.com/13pt" title="Jonathan" target="_blank"&gt;Jonathan Corum&lt;/a&gt; writes about &lt;a href="http://style.org/sign/" title="post" target="_blank"&gt;drawing sign language&lt;/a&gt; in last week’s NYT. (Posing is &lt;a href="http://twitter.com/sergionyt" title="serg" target="_blank"&gt;Sergio Pecahna&lt;/a&gt;, another colleague.)&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/37388344011</link><guid>http://chartsnthings.tumblr.com/post/37388344011</guid><pubDate>Fri, 07 Dec 2012 00:42:00 -0500</pubDate><category>Jonathan Corum</category><category>Sergio Pecahna</category></item><item><title>R tutorial: Simple charts</title><description>&lt;p&gt;Here&amp;#8217;s a (still getting tweaked) R tutorial for the charts in the last post. Here&amp;#8217;s &lt;a href="https://docs.google.com/file/d/0B8Jrqt3yp-JyM2JPUlZsbnBvNFk/edit" title="data" target="_blank"&gt;the data&lt;/a&gt; you&amp;#8217;ll need to download.&lt;/p&gt;
&lt;p&gt;Set your working directory to wherever you want to work out of (usually a project folder)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;setwd("/Users/pathToMyFolder...")&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Next, load the data. Any format is fine, but our data is a tab-delimited .txt files, so we can use read.delim (here, my data is in a folder called &amp;#8220;data,&amp;#8221; but yours can be wherever).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;data &amp;lt;- read.delim("data/states-data.txt")&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Make a new field in your data frame that is the sum of unified states:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;data$total.unified &amp;lt;- data$Unified.D+data$Unified.R&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now our data is ready to chart. It&amp;#8217;s just one line of code to make a plot of the number of unified states over time, with &amp;#8220;Year&amp;#8221; on the x axis and &amp;#8220;total.unified&amp;#8221; on the Y axis:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;plot(data$Year,data$total.unified,type='l',ylim=c(0,50))&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="shot1" src="http://farm9.staticflickr.com/8341/8229057526_2b16a041b9_b.jpg" width="1024"/&gt;&lt;/p&gt;
&lt;p&gt;The same plot, with extra arguments to clean it up a little:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;plot(data$Year,data$total.unified,type='l',ylim=c(0,50),xlab="Year",ylab="States",main="States with unified control of state government since 1938",col="red",lwd=3)&lt;/code&gt; &lt;code&gt;abline(h=c(0,10,20,30,40,50),col='lightgrey')&lt;/code&gt; &lt;code&gt;abline(v=c(1940,1960,1980,2000),col='lightgrey')&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="clean" src="http://farm9.staticflickr.com/8059/8235517137_46a71d643d_b.jpg" width="987"/&gt;&lt;/p&gt;
&lt;p&gt;Adding more layers onto the plot, drawing lines for Democratic- and Republican- unified states. (In general, &amp;#8220;plot&amp;#8221; makes a chart and &amp;#8220;lines&amp;#8221; add to an existing plot.)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;plot(data$Year,data$Divided,type='l',ylim=c(0,30))&lt;/code&gt; &lt;code&gt;lines(data$Year,data$Unified.R,col="red")&lt;/code&gt; &lt;code&gt;lines(data$Year,data$Unified.D,col="blue")&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="img2" src="http://farm9.staticflickr.com/8198/8227990917_c42677661f_o.png" width="1070"/&gt;&lt;/p&gt;
&lt;p&gt;Now we&amp;#8217;ll make a barplot instead. The syntax here is a little weird, and I had to get Amanda to fix mine originally, but it&amp;#8217;s not so bad. Basically, our data needs to be transposed and reduced to just the columns we want to plot. You can do this in one step, but for clarity I&amp;#8217;ll break it up here. It looks like a waffle chart just because of the horizontal axis lines, but it&amp;#8217;s just a barplot.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;code&gt;#just the numbers we want to plot &lt;code&gt;data.we.need&amp;lt;-data[,c("Unified.D","Divided","Unified.R")] &lt;/code&gt; &lt;code&gt;#a simple reshaping, transposing our data&lt;/code&gt; &lt;code&gt;transposed&amp;lt;-t(data.we.need) &lt;/code&gt; &lt;code&gt;barplot(transposed,ylim=c(0,50),col=c('blue','grey','red'),border=F)&lt;/code&gt; &lt;code&gt;abline(h=c(1:50),col='white')&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="waffle" src="http://farm9.staticflickr.com/8206/8229057376_4682f39694_o.png" width="955"/&gt;&lt;/p&gt;
&lt;p&gt;We end up doing the same plot for the final output; it&amp;#8217;s just shaped differently and has fewer axis lines. We&amp;#8217;re also saving it as a pdf in the dimensions we want:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pdf(file="stacked-bars.pdf",width=8,height=5) &lt;code&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;barplot(transposed,ylim=c(0,50),col=c('blue','grey','red'))&lt;/code&gt; &lt;code&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;abline(h=c(10,20,30,40),col='white')&lt;/code&gt; &lt;code&gt;dev.off()&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="img3" src="http://farm9.staticflickr.com/8067/8227991027_e5dd24f515_o.jpg" width="1043"/&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;Ship that!&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/36978271916</link><guid>http://chartsnthings.tumblr.com/post/36978271916</guid><pubDate>Sat, 01 Dec 2012 16:31:00 -0500</pubDate><category>R</category><category>tutorial</category></item><item><title>Choosing the best form</title><description>&lt;p&gt;Last week, my colleague &lt;a href="http://www.nytimes.com/2012/11/23/us/politics/one-party-control-opens-states-to-partisan-rush.html" title="Monica Davey story" target="_blank"&gt;Monica Davey reported&lt;/a&gt; that starting in January, one party will control both the state legislature and governor&amp;#8217;s office in 37 states, the highest that figure has been since 1952.&lt;/p&gt;
&lt;p&gt;Numbers like that don&amp;#8217;t always mean a chart will be good, but it usually means it&amp;#8217;s worth at least checking out, so I got data from the National Council of State Legislatures, which had previously published a chart &lt;a href="http://ncsl.typepad.com/the_thicket/2012/11/a-significant-decline-in-divided-government.html" title="blog post" target="_blank"&gt;on their blog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Getting data behind a chart you see on the internet isn&amp;#8217;t groundbreaking work or anything, but it happens regularly in our daily work, and just because you can get the data easily doesn&amp;#8217;t mean you can&amp;#8217;t screw it up. Anyway, there are a number of forms this could have taken, so I thought I would share some. &lt;/p&gt;
&lt;p&gt;The most basic chart to do here is to show the news: that the number of states with unified governments is at a 60-year high:&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="chart1" src="http://farm9.staticflickr.com/8341/8229057526_2b16a041b9_b.jpg" width="800"/&gt;&lt;/p&gt;
&lt;p&gt;That does show the news, but not much else. Adding on lines depicting which parties have unified control per year (the black line is just the sum of the other two) helped a little: &lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="Img2" src="http://farm9.staticflickr.com/8198/8227990917_cc1bdaa5f8_b.jpg" width="1024"/&gt;&lt;/p&gt;
&lt;p&gt;But the lines look super noisy and I thought maybe someone would want to see the states more prominently. Here&amp;#8217;s a waffle chart, with each square a state.  (One cool byproduct with the area chart forms is you get to see the U.S. add Hawaii and Alaska – the &amp;#8220;last&amp;#8221; bump on this chart is when Minnesota switched from a nonpartisan legislature in 1972.)&lt;img align="middle" alt="waffle" height="875" src="http://farm9.staticflickr.com/8490/8227991117_ff1781890e_o.jpg" width="799"/&gt;&lt;/p&gt;
&lt;p&gt;That might look a little better, but it&amp;#8217;s not like you get to identify individual states or anything, and it takes up more space than it deserves.&lt;/p&gt;
&lt;p&gt;So a compromise was made, making it shorter, but in a similar style:&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="compromise" src="http://farm9.staticflickr.com/8067/8227991027_e5dd24f515_o.jpg" width="1043"/&gt;One problem with both of these forms is that you don&amp;#8217;t actually get to see the main point of the story: that there are more unified states than ever before. But I couldn&amp;#8217;t think of a smart way to get all those, and I admit I liked being able to see the distributions. &lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="compromise" src="http://farm9.staticflickr.com/8203/8228056335_5e4beb302a_h.jpg" width="1600"/&gt;&lt;/p&gt;
&lt;p&gt;But another approach yet made it into the pages of the NYT. Charles Blow, an op-ed columnist and the paper&amp;#8217;s former graphics director, liked the chart, and wanted to use the same data in his column. But he used it in a slightly different way. His approach lets you compare all three numbers by separating them into two charts:&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="blow" src="http://farm9.staticflickr.com/8482/8229067192_7a8bb516bf_o.png" width="840"/&gt;&lt;/p&gt;
&lt;p&gt;So, given the news and the data, which form is best? Or care to make your own, better chart? The data is already online, but it&amp;#8217;s in a cleaner format &lt;a href="https://docs.google.com/open?id=0B8Jrqt3yp-JyM2JPUlZsbnBvNFk" title="Cleaner format" target="_blank"&gt;right here&lt;/a&gt;. I&amp;#8217;ll happily post any charts as long as they&amp;#8217;re politely submitted or worse than mine.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ll also post the (very few lines) of R code used to make these if you want to do some learnin. &lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/36904562002</link><guid>http://chartsnthings.tumblr.com/post/36904562002</guid><pubDate>Fri, 30 Nov 2012 17:29:00 -0500</pubDate><category>R</category><category>chart forms</category><category>daily work</category></item><item><title>I missed this, but you shouldn’t.

grahaphics:

An...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_mc3lpwXXJy1qz7mxyo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I missed this, but you shouldn’t.&lt;/p&gt;

&lt;p&gt;&lt;a class="tumblr_blog" href="http://grahaphics.tumblr.com/post/33840899813/an-abstract-flow-created-from-motion-capture-of"&gt;grahaphics&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An abstract flow created from motion capture of Nick McCrory’s high-dive, and destined for 3D printing with NYT R&amp;D&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you ever feel like curling up in the corner and having a good, long cry, Graham’s portfolio is &lt;a href="http://www.grahaphics.com/" title="Grahaphics" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/36634888020</link><guid>http://chartsnthings.tumblr.com/post/36634888020</guid><pubDate>Mon, 26 Nov 2012 21:05:03 -0500</pubDate></item><item><title>A Chartsnthings Thanksgiving  </title><description>&lt;p&gt;Readers, aggregators and bored skimmers of chartsnthings will know that this is frequently a place for statistical sketches, many of which are made in R. Yet this is not because the New York Times Graphics department only makes statistical charts; more realistically, it&amp;#8217;s because this blog&amp;#8217;s frequent contributors stink at drawing. The department has a wide assortment of (frankly badass) illustrators, cartographers and 3D modelers, and I&amp;#8217;ll try to include some more of their sketches in future posts. &lt;/p&gt;
&lt;p&gt;In that spirit, my colleague &lt;a href="http://www.twitter.com/aliciadesantis" title="Alicia Twitter" target="_blank"&gt;Alicia Desantis&lt;/a&gt; agreed to share sketches from her recent Thanksgiving flow chart of turkey preparation decisions.&lt;/p&gt;
&lt;p&gt;From Alicia:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Our original idea was to qualify 80 different turkey combinations. What&amp;#8217;s the difference between a heritage bird that is roasted whole, brined and air-dried and one that is butterflied, brined and air-dried? Supposedly these decisions have consequences, right? The final turkeys would be rated in a number of factors: juiciness, crispness, cost, time-prep etc. &lt;/p&gt;
&lt;p&gt;But this way of thinking about the story severely limited the number of variables and bogged us down in meaningless differences. So we moved to a decision chart — this way we could more clearly articulate what was at stake in each individual cooking choice. It also left some room for basic &amp;#8220;tips&amp;#8221; and commentary — and gave us an opportunity to experiment with a different voice. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Instead of not talking to your family at the Thanksgiving table, why not take a look through her design process? First, some thoughts in Illustrator&amp;#8230;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="AI1" height="265" src="http://farm9.staticflickr.com/8069/8208547223_7ed391ee98_c.jpg" width="800"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="AI2" height="502" src="http://farm9.staticflickr.com/8338/8208547137_22e515283d_z.jpg" width="640"/&gt;&lt;/p&gt;
&lt;p&gt;before moving to Omnigraffle&amp;#8230;&lt;/p&gt;
&lt;p&gt;&lt;img alt="OMNI1" height="1024" src="http://farm9.staticflickr.com/8350/8209691294_316a0bde03_b.jpg" width="738"/&gt;and cleaning up in Illustrator again:&lt;/p&gt;
&lt;p&gt;&lt;img alt="AI3" height="1005" src="http://farm9.staticflickr.com/8068/8208603013_48d712ffac_o.jpg" width="800"/&gt;&lt;/p&gt;

&lt;p&gt;And the &lt;a href="http://www.nytimes.com/interactive/2012/11/14/dining/turkeydecisions.html" title="final v" target="_blank"&gt;final version&lt;/a&gt; that made it to your browser:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.nytimes.com/interactive/2012/11/14/dining/turkeydecisions.html" title="img link" target="_blank"&gt;&lt;img alt="F1" height="651" src="http://farm9.staticflickr.com/8203/8209748728_cd5282e199_b.jpg" width="800"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See also the useful &lt;a href="http://www.nytimes.com/interactive/2012/11/15/dining/thanksgiving-menu-generator.html#/?id=all" title="Thanksgiving-erator" target="_blank"&gt;Thanksgiving-ertor&lt;/a&gt; and the &lt;a href="http://projects.nytimes.com/qa/events/thanksgiving-help-line" title="Help Line" target="_blank"&gt;Thanksgiving Help Line&lt;/a&gt;, made by a handful of designers and folks from Interactive News.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/36308291588</link><guid>http://chartsnthings.tumblr.com/post/36308291588</guid><pubDate>Thu, 22 Nov 2012 16:38:59 -0500</pubDate><category>Alicia Desantis</category><category>flow charts</category><category>Thanksgiving</category></item><item><title>Some sketches from the Times' scenario builder</title><description>&lt;p&gt;Probably the best-known of the department&amp;#8217;s graphics this election season is Mike Bostock and Shan Carter&amp;#8217;s &lt;a href="http://elections.nytimes.com/2012/results/president/scenarios" title="512 paths link" target="_blank"&gt;512 Paths to the White House&lt;/a&gt;. Instead of posting on this in detail, I&amp;#8217;ll just put up a few images and direct you to some stuff that&amp;#8217;s already out there.&lt;/p&gt;
&lt;p&gt;First, an &lt;a href="http://source.mozillaopennews.org/en-US/articles/nyts-512-paths-white-house/" title="Source interview" target="_blank"&gt;interview on Source&lt;/a&gt; with the authors. &lt;/p&gt;
&lt;p&gt;Next, Shan Carter&amp;#8217;s &lt;a href="http://shancarter.com/talk/2012/visualized/" title="Vizualized" target="_blank"&gt;recent talk at the Visualized conference&lt;/a&gt; in New York. (There was apparently a burst of applause when the first slides for this graphic came on the screen.)&lt;/p&gt;
&lt;p&gt;These photos are from that talk, but there are dozens more if you read through the whole thing, which you should, obv.&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" alt="s1" height="635" src="http://shancarter.com/talk/2012/visualized/slides/p256.png" width="919"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="s2" height="569" src="http://shancarter.com/talk/2012/visualized/slides/p240.png" width="951"/&gt;&lt;/p&gt;
&lt;p&gt;And the &lt;a href="http://elections.nytimes.com/2012/results/president/scenarios" title="final link" target="_blank"&gt;final graphic&lt;/a&gt;, which was wired up to results on election night.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elections.nytimes.com/2012/results/president/scenarios" title="linky"&gt;&lt;img align="middle" alt="final" src="http://shancarter.com/talk/2012/visualized/slides/p0.png" width="2002"/&gt;&lt;/a&gt;The only meaningful footnote I can add to this is that Mike Bostock described programming the animations as &amp;#8220;really, really hard.&amp;#8221; I read that to mean I need to give up programming immediately, but your mileage may vary.&lt;/p&gt;</description><link>http://chartsnthings.tumblr.com/post/35616801795</link><guid>http://chartsnthings.tumblr.com/post/35616801795</guid><pubDate>Mon, 12 Nov 2012 22:54:00 -0500</pubDate><category>Shan Carter</category><category>Mike Bostock</category><category>D3</category></item></channel></rss>
