<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zan on Medium]]></title>
        <description><![CDATA[Stories by Zan on Medium]]></description>
        <link>https://medium.com/@zanarmstrong?source=rss-bc1eb71ae1c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6Z8S2RKVUQQIbOFS.jpeg</url>
            <title>Stories by Zan on Medium</title>
            <link>https://medium.com/@zanarmstrong?source=rss-bc1eb71ae1c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 27 May 2026 20:39:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zanarmstrong/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Be as Cautious as Possible for the next 14 days]]></title>
            <link>https://medium.com/@zanarmstrong/be-as-cautious-as-possible-for-the-next-14-days-89186f63cbdb?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/89186f63cbdb</guid>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[friends]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 00:35:06 GMT</pubDate>
            <atom:updated>2020-03-21T04:15:29.162Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the letter I wrote to family and friends this morning. Within 20 minutes I’d gotten texts from my friend who is an ER doctor and my friend who is a public health nurse. They both said Thank You.</em></p><p><em>With them in mind, I’m sharing this more widely here. (with updates, as I learn more)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*SrlP04gmci6WHm2MAtAOwQ.png" /></figure><p>Hi friends and family,</p><p>Nothing like what is happening right now has happened in my lifetime. It’s hard to wrap my head around how different this is from what is normal.</p><p><strong>You know I’m not a public health expert or a medical professional.</strong></p><p><strong>That said, these recommendations don’t rely on any specialized knowledge. They are based on a bit of math (exponential growth), data from trusted sources, and framing how we think about upside/downside risk during a very limited time frame (14 days).</strong></p><p>I’ve put together this document with the best information I’ve seen so far (as of March 14th).</p><p>I’m sharing this with you because I want you to be ok because you are important to me. And because I want to support our community: especially our hospitals, doctors, and nurses who are going to be putting everything on the line to take care of us. I’m willing to risk looking alarmist, because the risk of not doing enough is too high. Plus… I (unfortunately) don’t think what I’m writing here is wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgxEFnF778k2CDSj7ZMpvw.png" /></figure><p><strong>Then re-evaluate based on what we know then.</strong></p><p><strong>Why 14 days?</strong></p><ul><li>we will have a better idea of how bad this really is</li><li>we will continue to better understand the disease and how it spreads</li><li>if we do extreme social distancing for two weeks, we can reset our understanding of who is contagious… and who is not. Which means we can start to interact more.</li></ul><h3><strong>Risks</strong></h3><p>Maybe I’m being too alarmist and maybe this is all wrong. But…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*5SVrpjO0q2g6aUGW2Y83eQ.png" /></figure><p><em>If you take the most cautious path possible for the next 14 days, and it turns out this was no big deal… what did you lose?</em></p><p><em>If you aren’t not cautious enough right now and you get sick, or our healthcare system collapses… what did you lose?</em></p><ul><li>Your life?</li><li>Dying a really painful death (drowning in the fluid in your lungs)?</li><li>Not getting to say goodbye to your loved ones?</li><li>You + those around you getting pretty sick?</li><li>Unknowingly infecting somebody you love….leading to them getting really sick or dying?</li><li>Getting somebody in your community sick, who can’t choose to be more cautious or who is more vulnerable?</li><li>Adding a burden to your city/hospital/the doctors &amp; nurses who are risking their lives to take care of your community?</li><li>Being sick so you can’t help others?</li></ul><h3>What does cautious mean?</h3><p>Again, I’m NOT a doctor or health professional.</p><p><em>[Aside: I haven’t done enough research yet into how transmission takes place to speak to this, and I don’t know if it’s yet known. If you have a good source for this, please find me on Twitter (zanstrong) and I can post it]</em></p><p>There are a lot of unknowns. So, to me, this means avoiding unnecessary contact with other people because right now we do not know who might be contagious (at least outside of a few countries like South Korea, Singapore, etc that have done extensive testing &amp; tracking).</p><p>Don’t believe me? Here is what UK scientists are saying: <a href="http://maths.qmul.ac.uk/~vnicosia/UK_scientists_statement_on_coronavirus_measures.pdf">http://maths.qmul.ac.uk/~vnicosia/UK_scientists_statement_on_coronavirus_measures.pdf</a></p><h3><strong>Goals</strong></h3><p><strong>My first goal is selfish… I want the people I love to be ok.</strong></p><p><strong>Fortunately, that is in line with the second goal: to avoid crashing our healthcare system</strong></p><p>From <a href="https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca">this article</a> on why acting RIGHT NOW matters so much:</p><blockquote>As a politician, community leader or business leader, you have the power and the responsibility to prevent this.</blockquote><blockquote>You might have fears today: What if I overreact? Will people laugh at me? Will they be angry at me? Will I look stupid? Won’t it be better to wait for others to take steps first? Will I hurt the economy too much?</blockquote><blockquote>But in 2–4 weeks, when the entire world is in lockdown, when the few precious days of social distancing you will have enabled will have saved lives, people won’t criticize you anymore: They will thank you for making the right decision.</blockquote><blockquote><a href="https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca">https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca</a></blockquote><p>Yes — a lot of us will eventually get the virus. It’s still better to act early, and be cautious now. Give the researchers and hospitals and society a chance to get ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*9al15owlhMlLa1km" /><figcaption>By Alexander Radtke - <a href="https://medium.com/u/65e91b9aa2ca">Alx</a> — learn more on <a href="https://flowingdata.com/2020/03/09/flatten-the-coronavirus-curve/">https://flowingdata.com/2020/03/09/flatten-the-coronavirus-curve/</a></figcaption></figure><p>So, please #flattenthecurve and #slowthespread</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IyebzgS54s5Qd34s" /><figcaption><a href="https://thespinoff.co.nz/society/14-03-2020/after-flatten-the-curve-we-must-now-stop-the-spread-heres-what-that-means/">https://thespinoff.co.nz/society/14-03-2020/after-flatten-the-curve-we-must-now-stop-the-spread-heres-what-that-means/</a></figcaption></figure><h3>Reasons (and references)</h3><h3>1. The number of people infected will grow exponentially, unless we take extensive and extreme measures to slow the growth rate.</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FKas0tIxDvrg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKas0tIxDvrg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FKas0tIxDvrg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/870c3ace37ea7d29e76f8b3824fb0e30/href">https://medium.com/media/870c3ace37ea7d29e76f8b3824fb0e30/href</a></iframe><p>Extreme measures mean either testing + strict quarantine for anyone exposed, or essentially shutting down society if we’re past the point of knowing who might be contagious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EpcobXT4Y8AD5Vs3" /><figcaption>Source: Financial Times. <a href="https://twitter.com/jburnmurdoch/status/1238822732302815232">Link</a> to John Burn-Murdoch’s Twitter account with updating graphic</figcaption></figure><h3><strong>2. Don’t trust case counts in the US: we’re not currently testing most people who need tests</strong></h3><p>People who have symptoms and want tests can’t get them.<a href="https://www.cnn.com/2020/03/12/us/coronavirus-testing-problems-nationwide-invs/index.html"><strong> </strong>CNN</a></p><p>Fortunately our universities and public health labs are creating their own tests and stepping up <a href="https://www.cdc.gov/coronavirus/2019-ncov/cases-updates/testing-in-us.html?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fcoronavirus%2F2019-ncov%2Ftesting-in-us.html">— link</a>.</p><p>But we are very far behind. Do NOT trust any US case count numbers currently.</p><h3>3. The US is ~11 days behind Italy. It’s really bad in Italy.</h3><p>The hospitals in Italy are already failing, doctors are choosing who they can take care of … and who to let die.</p><p>Both the chart above and comparing number of deaths indicates that we’re ~12 days behind Italy right now.</p><p><a href="https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca">Death counts are more accurate than case counts</a>, because they are a stronger signal and rely less on testing. Italy currently has 1441 deaths and the US 51 <a href="https://coronavirus.jhu.edu/map.html">— Johns Hopkins data</a>. Assuming the 33% daily growth rate from the original chart and similar death rates, that also puts us ~11 days behind Italy.</p><p>What is happening there now will be the US in 11 days. And, it’s only going to get worse unless we do something to mitigate it.</p><p>But it is possible to mitigate: see how Italy’s curve is starting to peel off the 33% growth line.</p><h3>4. Our individual, collective, and civic actions do matter</h3><p>See the top chart for Singapore, South Korea, China, etc.</p><p>Or, these simulations from the Washington Post. Although, they are missing an important color… there are not simulating the deaths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53gm3S14gWgYBLwzLHt-fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*io95tc2kbjYnwDJQSIX5_w.png" /><figcaption><a href="https://www.washingtonpost.com/graphics/2020/world/corona-simulator/?fbclid=IwAR17sNwkeAtSJ1NXwtExJ_RYob0cu4qRYxlUiy02nsb-YuO4lYVEJiBlGfE">https://www.washingtonpost.com/graphics/2020/world/corona-simulator/?fbclid=IwAR17sNwkeAtSJ1NXwtExJ_RYob0cu4qRYxlUiy02nsb-YuO4lYVEJiBlGfE</a></figcaption></figure><h3>5. Be as courageous as the civic leaders in Saint Louis in 1918.</h3><blockquote><em>“ Within two days of detecting its first cases among civilians, the city closed schools, playgrounds, libraries, courtrooms, and even churches. Work shifts were staggered and streetcar ridership was strictly limited. Public gatherings of more than 20 people were banned…</em></blockquote><blockquote><em>The extreme measures — now known as social distancing, which is being called for by </em><a href="https://www.cdc.gov/coronavirus/2019-ncov/php/risk-assessment.html"><em>global</em></a><em> </em><a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public"><em>health agencies</em></a><em> to mitigate the spread of the novel coronavirus — kept per capita flu-related deaths in St. Louis to </em><a href="https://www.nytimes.com/2007/04/17/health/17flu.html"><em>less than half</em></a><em> of those in Philadelphia, according to </em><a href="https://www.pnas.org/content/104/18/7582"><em>a 2007 paper in the Proceedings of the National Academy of Sciences</em></a><em>.</em></blockquote><blockquote><a href="https://qz.com/1816060/a-chart-of-the-1918-spanish-flu-shows-why-social-distancing-works/">https://qz.com/1816060/a-chart-of-the-1918-spanish-flu-shows-why-social-distancing-works/</a></blockquote><p><strong>Are you a leader, trying to decide if you should cancel an event?</strong></p><p><a href="https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca">This article</a> was written for you: <a href="https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca">https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca</a></p><h3>6. Be as cautious as you can possibly be right now, for the next 14 days.</h3><p>Typically we increase our caution as the severity of an issue seems to get worse, ramping up caution as the situation gets worse.</p><p>Instead,<strong> I urge you to jump right now to full caution.</strong></p><p>Be as cautious as possible for the next 14 days. <strong>This is especially true if you have any risk factors that mean you will likely need to be treated in a hospital (and have a higher risk of death).</strong></p><p>In 2 weeks:</p><ul><li>we will have a better idea of how bad this really is</li><li>we will continue to better understand the disease and how it spreads</li><li>if we do extreme social distancing for two weeks, we can reset our understanding of who is contagious… and who is not. Which means we can start to interact more.</li></ul><p>If things are ok or we have small groups that we know are not contagious, we can then re-evaluate and be less cautious.</p><p>Note — this warning is *especially true* if you are over 60 or have additional risk factors which mean you will likely need to be treated in a hospital. But, if you’re under 60 and have no risk factors, it’s time to STOP thinking you are somehow safe. In Italy, <em>“Twelve per cent of those who have been treated in intensive care are aged between 19 and 50, according to </em><a href="https://www.epicentro.iss.it/coronavirus/bollettino/Bollettino-sorveglianza-integrata-COVID-19_12-marzo-2020.pdf"><em>official figures</em></a><em> released last week.” — </em><a href="https://www.independent.co.uk/news/world/europe/coronavirus-italy-update-young-people-hospital-luca-lorini-bergamo-a9402531.html"><em>link</em></a></p><p>And, from a person currently recovering in the ICU: <em>“Important point: we really don’t know much about his virus. I’m young and not high risk, yet I am in the ICU with a very severe case” — </em><a href="https://twitter.com/ClementYChow/status/1239291639891243009"><em>link</em></a><em>.</em></p><h3>7. Yes — social distancing is a privilege: doing the best you can leaves more resources and helps protect those who don’t have that privilege</h3><p>Different people’s needs and circumstances are different. I urge you to choose to look at your options… and be as conservative as is reasonable/possible for you.</p><p>I am lucky that I can (and am actually required) to work from home right now.</p><p>If you have the privilege to be able to do extreme social distancing, then please do it. This will leave the hospital beds and resources for those who don’t have that privilege. And will slow the spread.</p><h3>8. Yes — the economic impacts of this are huge and worrisome, but they will be worse if we swamp our hospitals.</h3><p>The first thing we need to do is #slowthespread and #flattenthecurve. If the number of people who need medical support overcomes the ability of our hospitals to meet that demand, the economic impact will be worse.</p><p>No citation… this just seems clear.</p><h3><strong>9. Concerned about the impact to your local restaurants/businesses/organizations? Support them by buying gift certificates.</strong></h3><p>This means the small businesses get the money now to help them, and the people who rely on them for income, make it through this challenging time.</p><p><em>(Thanks Mom for the great idea!)</em></p><h3>10. This is a crisis unlike anything else the world has experienced in my lifetime.</h3><p>I’m thinking a lot about the stories of my grandparents and great-grandparents. The ways that they rose to meet challenges that I can hardly imagine. Facing things I’ve never imagined dealing with.</p><p>My Grandma Armstrong lived in isolation for two years when she caught TB, only allowed to wave to her 2yr old and 4yr old sons and her husband through a window. She recovered and lived until over 90 yrs old.</p><p>It is in her honor, that I write this email and that I choose caution. In this crisis, it’s not going to be two years in seclusion… it’s going to be life or a death for many people… and for the hospitals, doctors, and nurses who take care of us.</p><h3>11. You can still go outside. Just… stay away from other people</h3><p>Go for a walk or a bike ride. Go to the forest. Go to a park. (but maybe not a playground — evidently it stays on surfaces).</p><h3>12. Unfortunately you need to be careful of scammers, as well as of the virus</h3><p>For example, Medicare sent a warning <em>“Scammers may use COVID-19 as an opportunity to steal your identity and commit Medicare fraud. In some cases, they might tell you they’ll send you a Coronavirus test, masks, or other items in exchange for your Medicare number or personal information. Be wary of unsolicited requests for your Medicare number or other personal information.</em></p><p><em>It’s important to always guard your Medicare card like a credit card and check your Medicare claims summary forms for errors. Only give your Medicare number to participating Medicare pharmacists, primary and specialty care doctors or people you trust to work with Medicare on your behalf. Remember, Medicare will never call you to ask for or check your Medicare number.”</em></p><p>Ug. Be careful out there.</p><h3>13. Fortunately, in general PEOPLE are so truly WONDERFUL, AMAZING, GENEROUS, and COURAGEOUS. Let’s do this for each other.</h3><p>I love how creatively people are coping, including<a href="https://www.theguardian.com/world/2020/mar/14/italians-sing-patriotic-songs-from-their-balconies-during-coronavirus-lockdown"> the songs from balcony’s in Italy</a>. And, South Korea, Singapore, and other countries are showing us that we can collectively step up to the challenge.</p><p>People are so, so, so wonderful. We’re all in this together. Let’s take care of ourselves, so we can take care of each other.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89186f63cbdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Sampling of Data Visualization]]></title>
            <link>https://medium.com/@zanarmstrong/a-sampling-of-data-visualization-80a1bf8e3882?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a1bf8e3882</guid>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Wed, 19 Sep 2018 21:58:50 GMT</pubDate>
            <atom:updated>2018-09-19T22:03:08.351Z</atom:updated>
            <content:encoded><![CDATA[<p>I wrote this originally for students studying CS at Burton High School in San Francisco, but figured I’d post on Medium to have the chance to share with a wider audience as well.</p><p>Data visualization means very different things to different people in different contexts.</p><p>When you think of “data viz”, do you think of a pie chart or map used in a presentation on the floor of Congress, the charts in your math textbook, a piece of art in SF Moma, the futuristic displays we see in movies, the chart in your phone showing the amount of data you’ve used in the last month, or the graphs in the Economist or the New York Times?</p><p>We also often utilize visualizations without thinking of them as visualizations, like a heartbeat on a monitor in a hospital, charts of stock prices, a weather forecast, or the user interface you use when comparing prices/times/duration of plane tickets online.</p><p>Below are 10 different data visualizations that can be found online which exemplify <em>some</em> of the variety in data visualization. They vary in visual form, intended use, and the type of data they display. As you look at them, enjoy them for themselves. And, consider how each visualization’s visual form, presumed purpose for being created, and the type of data they display relate to each other.</p><h3><a href="https://www.bloomberg.com/graphics/2015-whats-warming-the-world/">What’s Really Warming the World</a></h3><p>Creator: Eric Rosten and Blacki Migliozzi, published in Bloomberg Businessweek</p><p>Link: <a href="https://www.bloomberg.com/graphics/2015-whats-warming-the-world/">https://www.bloomberg.com/graphics/2015-whats-warming-the-world/</a></p><p>This animated news graphic compares factors that are proposed to be contributing to global warming to help readers to engage meaningfully with the data, and understand the story of global warming through the data. It’s part of a larger story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f5GjrfydtqNXrded" /></figure><h3><a href="http://www.datasketch.es/may/code/nadieh/">Figures in the Sky</a></h3><p>Creator: Nadieh Bremer</p><p>Link: <a href="http://www.datasketch.es/may/code/nadieh/">http://www.datasketch.es/may/code/nadieh/</a></p><p>Visualizations can be both beautiful and informative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zX7uZ82pggiHnLx9HtGrjA.png" /></figure><h3><a href="https://www.nytimes.com/interactive/2015/05/28/upshot/you-draw-it-how-family-income-affects-childrens-college-chances.html">You Draw It: How Family Income Predicts Children’s Changes of Going to College</a></h3><p>Creator: Gregor Aisch, Amanda Cox, and Kevin Quealy of the New York Times</p><p>Link: <a href="https://www.nytimes.com/interactive/2015/05/28/upshot/you-draw-it-how-family-income-affects-childrens-college-chances.html">https://www.nytimes.com/interactive/2015/05/28/upshot/you-draw-it-how-family-income-affects-childrens-college-chances.html</a></p><p>In this story, readers have to draw <em>their best guess</em> at the graph showing the relationship between parent’s income and children attending college. After they draw the graph, they can see the true data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KPajM4GYTRLZD8_p" /></figure><h3><a href="https://earth.nullschool.net/#current/wind/isobaric/250hPa/orthographic=-95.58,29.30,516">Earth Wind Map</a></h3><p>Creator: Cameron Beccario, inspired by Fernanda and Martin Wattenberg’s US wind map.</p><p>Link: <a href="https://earth.nullschool.net/#current/wind/isobaric/250hPa/orthographic=-95.58,29.30,516">https://earth.nullschool.net</a></p><p>This map of the world shows the data about wind from the last few hours. Note: click on “earth” to switch to different types of metrics. It shows a large amount of data at one time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*knixkraLGzx5KcKV" /></figure><h3><a href="https://bost.ocks.org/mike/algorithms/">Visualizing Algorithms</a></h3><p>Creator: Mike Bostock</p><p>Link: <a href="https://bost.ocks.org/mike/algorithms/">https://bost.ocks.org/mike/algorithms/</a></p><p>This set of visualizations compares, contrasts, and explains different CS algorithms and randomness (or lack there-of).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QrjJONB3F0oiaXLM" /></figure><h3><a href="https://xkcd.com/1732/">A Timeline of Earth’s Average Temperature (as a cartoon)</a></h3><p>Creator: XKCD — Randall Monroe</p><p>Link: <a href="https://xkcd.com/1732/">https://xkcd.com/1732/</a></p><p>Visualizations don’t need to be interactive to be powerful or impactful. I love the use of scale and aspect ratio in this cartoon about global warming. Like the Bloomberg piece above, it shows the parts of the graph when “nothing is happening” to make the importance of when something is changing much more clear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/0*5EwKrlVbIhXZeOVd" /></figure><h3><a href="http://www.fallen.io/ww2/">The Fallen of World War II</a></h3><p>Creator: Neil Halloran</p><p>Link: <a href="http://www.fallen.io/ww2/">http://www.fallen.io/ww2/</a></p><p><a href="http://www.fallen.io/ww2">The Fallen</a> uses visualization, narration, and animation to <strong>tell the story</strong> of the people who died in World War II.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_ARmREHmirpg5B8C" /></figure><h3><a href="https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/">Why are so many babies born at 8am</a></h3><p>Creator: Me (Zan Armstrong)</p><p>Sometimes the same data can (and should) be visualized in different ways, for different purposes. Many charts are created by someone as part of their analysis, and are never shared. Or, are used successfully to identify an interesting aspect of the data that is then shared in a different form (a story, presentation, or in a graphic designed for communication rather than analysis). Charts for analysis will look scrappier and less polished than charts designed for communication, just as the notes we take for ourselves while interviewing a source or working through a science problem would look like a work-in-progress compared to a final publication.</p><p>I created the graph shown below while analyzing CDC data about the time of data babies are born. I ended up using a version of this chart in my talk on<a href="https://www.youtube.com/watch?v=IiF4-g001EQ"> Everything is Seasonal.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCnKirSiQMELHufMTp1q2w.png" /><figcaption>Graphic created for analysis</figcaption></figure><p>Creators: Nadieh Bremer and I (Zan Armstrong)</p><p>Later, I revisited this data in collaboration with Nadieh Bremer to create <a href="https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/">a graphic science article for Scientific American</a>.</p><p>Link: <a href="https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/">https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEyIt9KXKlO5aczcAhc0Yg.png" /></figure><h3><a href="https://archive.org/details/mortalityofbriti00lond">Mortality of the British army : at home and abroad, and during the Russian war, as compared with the mortality of the civil population in England</a></h3><p>Creator: Florence Nightingale</p><p>Link: <a href="https://archive.org/details/mortalityofbriti00lond">https://archive.org/details/mortalityofbriti00lond</a></p><p>Impactful data visualization doesn’t have to be made on a computer, or made recently. This set of visualizations created by Florence Nightingale convinced the Queen of England and the military to take sanitary conditions more seriously, as far more soldiers were dying of illness than on the battlefield.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*MaIed6C7hMfDUcW32MbU-Q.png" /></figure><h3><a href="https://ncase.me/polygons/">Parable of the Polygons</a></h3><p>Creators: Nicky Case and Vi Hart</p><p>Link: <a href="https://ncase.me/polygons/">https://ncase.me/polygons/</a></p><p>Visualizations can help us model our world through simulations. In this case, the simulations helps create a way to talk about and think about complex social issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOqOYwgn0ukRfUoXwjyTFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a1bf8e3882" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Data Sources]]></title>
            <link>https://medium.com/@zanarmstrong/open-data-sources-7438fbf706c7?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7438fbf706c7</guid>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Mon, 16 Apr 2018 00:02:49 GMT</pubDate>
            <atom:updated>2018-04-16T00:02:49.764Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently taught a lesson on data visualization to a class of CS students at Lowell High School in San Francisco. One question was about finding good sources for open data online, which students could use in their final projects. Instead of just writing a doc and sending them, figured I’d write a blog post to share more widely. Many other people keep much more extensive lists of open data than I have, so several of my recommendations are to other lists.</p><h4>Data SF</h4><p>Since Lowell HS is based in San Francisco, let’s start with something local. Data from the city government can be found on <a href="https://datasf.org/opendata/">https://datasf.org/opendata/</a></p><h4><strong>Data is Plural</strong></h4><p>I love the <a href="https://tinyletter.com/data-is-plural/archive">Data is Plural</a> list by Jeremy Singer-Vine. It has a great variety of fascinating data sources. The types of content include data that is on quite serious topics, others are playful, and some are just wonderfully quirky. Where else can you find data on <a href="https://tinyletter.com/data-is-plural/letters/data-is-plural-2018-01-10-edition">burritos</a>, <a href="https://tinyletter.com/data-is-plural/letters/data-is-plural-2018-01-03-edition">Incan knotted strings</a>, <a href="https://tinyletter.com/data-is-plural/letters/data-is-plural-2018-01-17-edition">air pollution</a>, and <a href="https://tinyletter.com/data-is-plural/letters/data-is-plural-2018-04-04-edition">negotiations with North Korea</a> all in the same place? Some are very large datasets and others much smaller.</p><p>Click on the <a href="https://tinyletter.com/data-is-plural/archive">link</a> to check out the archives and/or subscribe.</p><h4><strong>Scott Murray’s List of Resources</strong></h4><p>Scott Murray, author of Interactive Data Visualization for the Web, provides a <a href="http://alignedleft.com/resources">list of resources for data visualization</a> on his website. This includes a long list of<a href="http://alignedleft.com/resources/data-newsletters"> data and visualization related newsletters</a> including Data is Plural.</p><p>Sometimes data is “locked” in pdfs. Scott points to a number of resources for extracting structured data from pdfs <a href="http://alignedleft.com/resources/pdf-data-extraction-tools">here</a>.</p><h4>FiveThirtyEight: Sports and Politics</h4><p>FiveThirtyEight publishes the data and code behind a lot of their graphics, which they post <a href="https://data.fivethirtyeight.com/">here</a>. They include a link to the article, information about the dataset, and the data itself for easy download.</p><p>This is especially nice because you can get both the data and see how the FiveThirtyEight team used that same data in their reporting.</p><p>The New York Times Upshot has <a href="https://github.com/TheUpshot">a similar repository on Github</a> with the data and methodology behind some of their stories.</p><h4>CDC: Life, Death, and Everything Health Related In-Between</h4><p>The CDC provides a lot of information about health, wellness, disease, births, and death in the United States. The datasets are <a href="https://data.cdc.gov/browse">here</a>. You can usually download the data or go to an online data explorer.</p><h4>ProPublica’s Data Store: Shedding a Light on Explotation</h4><blockquote>The ProPublica Data Store gives you access to the data behind our reporting and helps to sustain the challenging, expensive work of investigative reporting. We provide free access to the raw data behind our work, as well as premium data products and custom data services. These and other initiatives support ProPublica’s mission of investigative journalism in the public interest.</blockquote><p>ProPublica’s Data Store is <a href="https://www.propublica.org/datastore/">here</a>.</p><h4>Bureau of Labor Statistics:</h4><p>The United States Bureau of Labor Statistics has <a href="https://www.bls.gov/data/">a lot of data</a> about people working in the United States. I often find it a little difficult to find what I’m looking for here, but it has a lot of potentially interesting information about the US.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7438fbf706c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Story Behind the Viz: The Baby Spike]]></title>
            <link>https://medium.com/@zanarmstrong/story-behind-the-viz-the-baby-spike-21d0cd7bc54f?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/21d0cd7bc54f</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[baby]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[c-section]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 02:42:55 GMT</pubDate>
            <atom:updated>2017-11-01T02:57:37.819Z</atom:updated>
            <content:encoded><![CDATA[<p>When you first look at the visualization below, what do you notice first? The big spike? The colors? The shape? Something else?</p><p>Does your first impression make you want to look at it more? If yes, why? If no, why not? What do you notice as you look at it longer?</p><p>Does anything surprise you?</p><p>What features help you interpret what’s going on? Are these effective or not?</p><p>Does it make you ask more questions, or want to learn more? Why or why not?</p><p>Lastly, does it change any assumptions you had about baby’s births?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ep2V5YpfT9mHiWn0EOyFGA.png" /><figcaption>Focusing on the 1440 minutes per day</figcaption></figure><p>Nadieh Bremer and I created these data visualizations for the July 2017 issue of Scientific American’s Graphic Science page. I also wrote a more detailed accompanying blog post <a href="https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/">Why are So Many Babies Born around 8am</a>?</p><p>The heart of the visualization is a radial area chart showing how the number of babies born for each of the 1140 minutes of the day compared to average. In print, this was accompanied by two other charts showing different time scales. Online, we shared three different minute-of-day chart; one for each method of delivery. This revealed distinct underlying seasonal patterns by delivery method, which together combined to create the observed overall daily pattern.</p><p>It’s just a one-page article, with 3 charts, and another 3 charts online. Yet, we thought a lot about how we wanted to present this data in a way that was engaging and best fit the story we’d discovered in the data and wanted to share. Perhaps some of these details relate to your answers to the questions I posed at the beginning?</p><p>Nadieh and I thought it would be fun to share our process and the story behind the viz. In my post here, I’ve highlighted some of my favorite design insights and decisions made in the course of the project and why we chose them. You can also check out<a href="https://www.visualcinnamon.com/2017/10/creating-baby-births-visual.html"> Nadieh’s blog </a>for her insights into the design process, including images showing iteration. There are also some great bonus bloopers!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JxjyR3HKoCqG1TUS5g59aQ.png" /><figcaption>Credit: Nadieh Bremer and I, with editing by Jen Christiansen — original published on <a href="https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/">Scientific American’s blog</a></figcaption></figure><p>This project had 5 main stages, and different design elements emerged from each stage. Let’s start back in March of 2016…</p><h3>1. Finding the data and core story</h3><p>In March 2016, I downloaded CDC birth data because I wanted to include an example of minute-of-day data from a public dataset to illustrate seasonality in very granular data for my OpenVis Conf talk <a href="https://www.youtube.com/watch?v=IiF4-g001EQ">Everything is Seasonal</a>.</p><p>Most public datasets don’t have minute-level granularity, so I breathed a sigh of relief when I found<a href="https://www.cdc.gov/nchs/data_access/vitalstatsonline.htm"> this CDC (Center for Disease Control and Prevention) dataset</a> showing the number of babies born per minute of day and day of week by year.</p><p>I’ve found that most data that has to do with people or nature will have minute-of-day seasonal patterns. So I expected to see something interesting.</p><p>But, wow! It was much more striking that I expected, especially when each point of the graph represents a minute and I “faceted” by day of week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2gPCI8S7bcOaxQmPpW99w.png" /><figcaption>One of my first charts with this data, made in R showing the stark difference between weekdays and weekends</figcaption></figure><p>After sharing this chart with my friend Brendan who is a nurse, he responded: “Can you break out natural vs induced vs c-section?”</p><p>So, of course I did. And, this is what I saw. Note that all these charts have the <em>same</em> y-axis scale.</p><p>As Brendan replied “Damn that’s a lot of c-sections.”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uS2wkJZhM5C5EpwS_MzK9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5vrBe0PRsHRsMl9eXW9_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EysPLb89GqMQqAdQBvPgTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTxj8DZNNzSXYonv_1MdUQ.png" /></figure><p>This visual form worked well enough for the point that I wanted to make in the presentation. Instead of being overwhelming or “too much data”, looking at granular minutely data was actually easier to interpret than aggregated data. It revealed strong, rich patterns. Seeing all the dots reinforces the feeling that this isn’t just some rogue datapoint; something is going on here.</p><p>I tweaked the charts just a little bit, and then they were ready for the talk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kX05-_QqF4VU1zGs8TyF3g.png" /><figcaption>Explaining the metric</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZqPjykT2E3x5yaR89QQCg.png" /></figure><p>I also found daily data, which I aggregated to weekly to remove the day-of-week effects, to illustrate the cycles that we also see annually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21JJKxtt9QOX9F45AZzDQQ.png" /><figcaption>“Week of Year” birth patterns from the same talk</figcaption></figure><p>At this point, I’d already established a few key insights that would influence the final visualization published in Scientific American.</p><ol><li>I showed different seasonal patterns at different levels of granularity (minute of day, day of week, and week of year).</li></ol><p>2. It was clear that medical intervention was part of the seasonality story.</p><p>3. I loved that showing fully granular data, a dot for every minute, made the pattern feel more real and striking. And, lastly, showing multiple small versions of the chart, “small multiples”, provided context and enabled comparison.</p><p>The original form was effective for the talk, and it fit the rest of the presentation in which all the time series were presented with time on the x-axis and count on the y-axis.</p><p>However, in revisiting this data to create a stand-alone, printed piece, there were a number of specific challenges that I wanted to address.</p><p>For example, the peaks were much more obvious than dips.</p><p>It was hard to visually distinguish the more subtle shape of the spontaneous (no c-section/no induction) births vs induced. These are actually quite different, but they look pretty similar in this original form. The importance of this was actually much more clear once we had developed the new visual form, because the differences are so much more obvious.</p><p>The week of year and minute of day visualizations didn’t really fit together, as part of the same story or visual form.</p><p>The metric itself “the total number of babies born per minute on a particular day of week” was how the data was defined in the data source. But, it’s such an awkward construction to explain! Sometimes it takes another’s perspective to see the obvious. When Nadieh later asked why not just use “average number” instead of “total over the course of the year”, I immediately normalized the data and made the switch. To do this, I had to also adjust for the fact that some days of week occur 52 times and some 53 times in a year.</p><p>Oh, and aesthetics! Beauty isn’t just a “nice-to-have” when engaging a reader’s attention. It makes a big difference to create something that is enjoyable to look at. If you want to look at it, you’ll look at it more! Moreover, when done well, subtle aesthetic details help the reader notice more about the data itself and see a richer, more complex story.</p><p>The strengths, and weaknesses, of the original set of charts along with a changing the context to a polished printed piece set the stage for later design decisions. But, I’m getting ahead of myself…</p><p><strong>A quick aside: why are there so many C-sections?</strong></p><p>In the US in 2014, 32% of births were c-sections, 18% were induced, and 50% were spontaneous. Having seen the dramatic peaks at 8:30am and noon on the c-section chart above, it’s probably not surprising to learn that many of these were scheduled. In fact, of the c-sections, 75% of c-sections were planned/scheduled and the other 25% were unscheduled.</p><p>At this point you might be wondering <em>why</em> there are so many scheduled c-sections and inductions. That’s a great question. Understanding what drives these rates, why they vary from country to country and hospital to hospital, and what they “should” be requires investigating many intersecting factors. There are a suite of questions to ask about what’s driving decision-making and recommendations for hospitals, doctors, insurance, and patients. It’s also not an easy question, either at the population level (what percent of births *should* include intervention) and the individual level (what should this women do?). And, there are lives and health at stake in the answers, both for the moment of birth and the recovery afterwards. Historically childbirth is one of the most dangerous things a women might do in her lifetime and being born is one of the most dangerous things we <em>all</em> do in our lifetimes.</p><p>The goal of this visualization is to show that many births are scheduled. These “why” questions, however, are out of the scope. I hope we’ve peaked your curiosity to learn more and please check out the articles linked in the appendix of this article!</p><p>That said, it’s worth noting that “scheduled/planned” and “elective/voluntary” are <em>not</em> synonymous. For example, a heart surgery might by <em>unscheduled</em>, if somebody shows up in the emergency room or something goes wrong while they are in the hospital for something else. Or a heart surgery, like an angioplasty to clear partially blocked arteries, might be <em>scheduled</em> due to a high risk of something bad happening if a medical problem is not addressed relatively soon. In both cases, the procedure is recommended by doctors and the hospital. It’s just that in one case it’s in reaction to an immediate emergency and in the other there is time to plan ahead for how to best address a known risk. This is similar for c-sections and inductions. There are <em>unscheduled</em> inductions and c-sections due to something that came up unexpectedly during the labor. There are also <em>scheduled</em> inductions and c-sections, which in the US are primarily in response to a medical recommendation. These might be due to factors that are known before labor starts. For example, for C-section the woman might have diabetes, a heart condition, had a previous birth by c-section, or the baby might be in a “breech” position or not growing well enough — <a href="https://www.babycentre.co.uk/x1029502/what-are-the-reasons-for-having-a-caesarean-section">source</a>.</p><h3>2. A story about seasonality of birth, told graphically at three levels of granularity</h3><p>A week after I gave the OpenVis Conf talk, I was absolutely thrilled when Amanda Montanez from Scientific American reached out asking if I might be interested in creating a visualization based on the talk. When I was a teenager, my family subscribed to Scientific American and I often discussed articles and ideas from the magazine with my Dad. Therefore, it was a dream come true to be invited to contribute to a well-respected publication which had also been so personally important to me.</p><p>I loved how Amanda’s framed the story in her pitch to the Scientific American editors, as shown below, and I was so excited to run with this idea.</p><blockquote><strong><em>The Seasonality of Birth</em></strong></blockquote><blockquote><em>This idea was sparked by a data viz talk on seasonality I saw a while back. I had heard before that hospital births tend to spike around the times when doctors’s shifts are ending. However, I’d never seen it visualized…it is quite dramatic! In addition, there interesting patterns if you look at days of the week (fewer births on weekends and holidays) and weeks of the year (more births in late Sept/early Oct than any other time, consistent dips at the beginning of January, etc)....Could be interesting to do a set of time three series, each one zooming in from the previous one to show a more granular level of seasonality. And annotate to explain each.</em></blockquote><p>Because of some schedule constraints in my personal life, including taking some extended time off to travel to Alaska, Oregon, Namibia, Mozambique, Egypt, Chile, and Argentina, it wasn’t until March 2017 that I was ready to follow up.</p><p>Despite this being a relatively small project, I also thought it would be a great chance to collaborate. I love Nadieh Bremer’s work. Her creations are always beautiful, her technical skill in R, Javascript, and Illustrator is excellent, she contributes to the community through her presentations and tutorial-style blog posts, and she respects the story that is revealed in the data. We’d both spoken at the same OpenVis Conf in 2016 and enjoyed meeting there. Moreover, our skills sets are partially overlapping and partially complementary, so I thought this would be a great chance to collaborate.</p><p>I was thrilled when she agreed to collaborate, and made the time for this project despite having a packed schedule of travel, work, and presentations. It worked out even better than I might have imagined, both in terms of leading to a better final product and being a fantastic, fun, creative, thought-provoking experience! In writing this blog post, I reread many of our emails from the time, and enjoyed reliving the energy, shared curiosity, mutual respect, and sense of exploration as we evolved our understanding of the data and form through words and images.</p><h3><strong>3. Defining the core visual form in a few intense creative in-person working sessions</strong></h3><p>In just two in-person working sessions in San Francisco, Nadieh and I worked together and established the core visual form we would use.</p><p>In particular, we would have 3 radial charts: one for minute-of-day, one for hour-of-week, and one for week-of-year. We also planned to dive into the second data set, by delivery method, at a later date. In each chart, we would focus on the differences compared to average rather than the raw counts, although we had a big design challenge in front of us for how to actually depict that difference to average (area? bars? something else?).</p><p>On day 1, I served up munged data from Python while Nadieh was working magic in R. We sat next to each other, in almost constant conversation as we played with various forms. By day 2, Nadieh had written the core of the viz into D3 and we again focussed on quick iterations coupled with lots of discussion. For these quick iterations on a relatively small project it worked well to have a bit of division of labor and focus on whatever enabled us to experiment/explore most quickly.</p><h4><strong>Technical skills open up a wider design space</strong></h4><p>While it’s easy to conceive of design and technical skill as independent, it was obvious during these two sessions how Nadieh’s facility in code directly impacted our design decisions. And, as Nadieh reminded me, “it was also often you providing me with a different view on the data within mere minutes that was crucial. During the first parts of our process being able to quickly create different ‘lenses’ on the data and create crude plots of those…is the complementary part to being able to quickly change visual elements later on in the design phase.” Throughout the project there were numerous moments where we were debating if we should go with one idea or another, when we would just stop debating and try it.</p><p>If this had been a 30 minute, 1 hour, or 5 hour task, we would have had to make a decision about if it was even worth trying. Or, we’d have just made a guess and gone with that. When it takes just a couple minutes, why not just see what it looks like? In this way, technical skill enables one to explore a much wider and more nuanced design space. This also means we could be more responsive to the data itself, because we could see what the form actually looked like with the real data rather than what we imagined it might look like.</p><h4><strong>Radial design, with comparison to average rather than to 0</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTBqtm5rDyVCcos4EB_IvA.png" /><figcaption>Legend illustrating the key insight: comparing to the average line</figcaption></figure><p>Decisions were rarely all or nothing, but rather nuanced. When we first took a look at radial designs, there were some flaws.</p><p>Most importantly, it’s really easy to lose track of the center of the circle with radial line charts as your brain sort of just assumes that the center is in the center of the shape, even if it’s off-set. I had struggled with this in a previous project, <a href="http://weather.zanarmstrong.com/">weather circles</a>, and recognized it as a challenge here.</p><p>Additionally, in both the original rectangular grid charts and our first radial line charts, peaks were more obvious than dips. And, more subtle differences in seasonality got lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*BgExYJut-r_OcKgbA8X-8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*QVEjWYX0JrLoHbF2BotOJA.png" /><figcaption>In rectangular form, it’s hard to tell the difference between the seasonality and volume of spontaneous births (on left) compared to induced births (on right).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ba1e4pdg6RjZfvlhHXyI8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ig8UM5LrzSKetcCvlTwBBQ.png" /><figcaption>As radials, the pattern for spontaneous births shown on left looks much more obviously different than the induced births on right. The “spontaneous” births roughly match daylight, while the induced peak is obviously shifted around the circle to the late afternoon.</figcaption></figure><p>In discussing how to deal with these issues, we realized that this wasn’t just a visual issue. It was also about the story in the data itself. The story we most wanted to reveal in this data wasn’t a story about the raw number of babies being born at any given minute.</p><p>Rather, the story was bout how the number of babies born compared to typical. Was it a dip or a spike? More or less than usual?</p><p>The insight about visual form came from trying to best match the form to the aspects of the data we most wanted to share. Sketching on paper, I suggested trying comparing to average. Nadieh gave it a shot, and we both liked it.</p><p>Instead of a line representing the distance from the center (number of babies per minute) we switched to an area chart representing the percent difference in number of babies born per minute compared to average.</p><p>Aligning our visual representation with the story we wanted to tell solved for both the visual issues of “losing track of the center” and “how do we see dips.”</p><p>Granted, a rectangular area chart comparing the peaks/dips to average would have also solved for both these problems too.</p><p>However, the circle had three major benefits over a rectangular form. 1 — The radial form emphasizes small shifts in what time a peak or dip occurs, since a change in time corresponds to a change in angle. 2 — It’s a very compact form, and reads as a cohesive shape that I think enables comparison. 3 — in a rectangular chart showing a cyclical pattern, the impression of the chart is heavily influenced by where you (arbitrarily) break the cycle.</p><h4>Cracking the circle open</h4><p>Another issue with circles is that there is no start or end. It’s not obvious where the reader should start “reading” the visualization. It’s also unclear where to put the annotation for the grid lines, since there is no “left side” of the chart.</p><p>Nadieh solves for this beautifully by “cracking” the circle at the top, a technique she often uses when creating radial designs. I loved it, writing in an email that <em>“the gap at midnight is great — I think it’s small enough that it doesn’t break the circle too much, but large enough to provide room for the annotation. And, it gives the eye a nice place to start.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Dk_lqPi-BqpZGFFTack_MQ.png" /></figure><p><strong>Hour of Day or Day of Week? Neither!</strong></p><p>We knew early on that we would focus on minute of day and week of year. But, the third chart was unclear. Hour of day would just repeat the minute of day story, but not tell it as well. And, day of week only had 7 sparse data points.</p><p>Nadieh tested a mixed chart, that had a curve for each day’s average value per-hour as a baseline along with scattered points for each hours value. But, it just didn’t click.</p><p>Finally, we decided to go with an unusual metric of “hour-of-week.” With 168 points per week there was enough data density to show clean patterns.</p><p>As you can see in the final chart, rather than feeling too repetitive, the hours-of-week supplemented the minute of day charts. They showed that those peaks were a weekday effect since the missing Saturday and Sunday peaks jumped out in the hour-of-week chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*lqC0jCkVTT7CUo-4tXUlLQ.png" /><figcaption>Notice that the whole of Saturday and Sunday are blue/greens, without the bright peaks of the weekdays</figcaption></figure><h4><strong>Highest peaks breaking the frame</strong></h4><p>This is a small point, but something that I really enjoyed having the chance to incorporate into this viz.</p><p>One of my favorite visualizations of all time is this chart of the prices of cotton in New York in the 1800’s from the US Statistical Atlas published in 1883. There was an obvious challenge: how do you show both the moderate variation in the pre/post-Civil War price of cotton in New York on the same graph as you show the absolutely massive spike in prices during the Civil War? I love the audacity of their answer: create a reasonable frame for the pre/post period and then break it. Oh, and don’t worry about the fact that your spike is not piercing through Chicago in a totally different map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*agld-w3MSswXZ9Asq5WOMQ.jpeg" /><figcaption>From the <a href="https://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~32775~1152153:123--Cotton-goods-?sort=Pub_List_No_InitialSort%2CPub_Date%2CPub_List_No%2CSeries_No&amp;qvq=q:price%2Bof%2Bcotton;sort:Pub_List_No_InitialSort%2CPub_Date%2CPub_List_No%2CSeries_No;lc:RUMSEY~8~1&amp;mi=0&amp;trs=3#">Rumsey Map Collection</a> —Scribner’s statistical atlas of the United States based data from the 10th US Census</figcaption></figure><p>I love how breaking the frame helped contextualize local variation while also emphasizing the unusualness of the chart.</p><p>The minutely baby data had similar characteristics: a big spike along with smaller variation throughout the rest of the day. Therefore, I was psyched when Nadieh agreed with my proposal that the AM spike would break the frame in the overall minute-per-day and C-section charts. She executed this beautifully!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*qmfq2M2SFDIi3oaq95z2Ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*twzQ1dtnlaD1jY13yRvq9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vf7BcEsMQAD0oBHH01HGkg.png" /><figcaption>Breaking the frame!</figcaption></figure><p><strong>Being boring IS the story: 0% is the center of the circle</strong></p><p>One surprising thing is how much more “boring” the final week-of-year chart is in comparison to the others. This isn’t an accident, but is part of the story. Yes, September is more common than January. But, these variations pale in comparison to the difference between a Saturday evening and Monday morning, or between 6am and 8am on a weekday. In all three charts, we pinned the center to 0 and the average to the same radius. Therefore a 5% change in one chart is equivalent to a 5% change in another, making them comparable.</p><p>Jen, our wonderful graphics editor, helped us realize that we weren’t communicating this idea clearly in our drafts and suggested that a better legend might do the trick. More on that on story in Nadieh’s blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*5Ayx-G0LZ750Csvumzj7Jg.png" /><figcaption>We put the magnitude of the seasonality in context by pinning the center to 0, so that percent change is comparable across charts</figcaption></figure><h3>4. Iteration, refinement, and editing with attention to impactful details</h3><p>In this part of the creation process, Nadieh was the MVP and I played a supporting role.</p><p>There are so many exquisite, meaningful details! You can read about them in detail on her blog, but I’ll highlight a few of my favorites here as well.</p><h4>Color gradient</h4><p>As soon as she moved to D3, Nadieh added a color gradient to the area chart. And, soon this became a diverging orange to blue spectrum with a sharp cut-off at the yellow baseline splitting the two. The spectrum is perfect since it shows off both dips and peaks, is color-blind safe, and even subtly matches the diurnal cycle with the dips tending the blue in the night and peaks in the morning/day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*E1GdAaxprERwEDVhOeIqQw.png" /><figcaption>Gradient switching from the blue/greens of the nighttime dip to the bright reds/oranges of the morning peak</figcaption></figure><h4><strong>Trusting your gut</strong></h4><p>One of the most critical aspects of design was how to represent the distance from the average line. Should it be bars, or really bar-like slices? An area chart with a smooth gradient? Bars with a gradient? Or, finally, concentric circles creating discrete slices?</p><p>This wasn’t just about the design, but also about trusting your gut.</p><p>While experimenting, Nadieh wrote:</p><p><em>The bars … are getting really thin for the inner section and you might end up with a Moiré effect or something (I tried to counter that a little, by making the inner bars actually mini pie chart-like slices that become thinner the more they coming inward)</em></p><p><em>I really do like the areas, but the perfection of it is somehow bothering me a bit. Like it feels too polished, too slick, without character.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*dSUAD7w6IA5g0o7zBKYb0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*twzQ1dtnlaD1jY13yRvq9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*b9pCFe7K485FnaK26wk8ZQ.png" /><figcaption>On left, the discrete concentric circles used in the major charts. On right, the smooth, continuous gradient used in the smaller more “sprite-like” charts by delivery method</figcaption></figure><p>A few iterations later we’d thrown out the bars due to the pervasive Moiré effects that she’d anticipated. Instead, in a middle of the night jetlegged empiphany, she’d come up with an approach that essentially discretized the area chart into concentric circles.</p><p>We debated back and forth what made the most sense, and for which charts. I reflected back that:</p><p><em>Discrete: good for comparing/exploring/seeing different parts *within* a chart. You can see how the curve of the data cuts into the concentric colored circles and see the shape of each concentric ring. And, it’s easier to get a sense of distance from the average line by the number of rings, which is especially helpful for comparing the magnitude of dips to bumps.</em></p><p><em>Smoothed: good for comparing *across* charts, because you see each chart as a singular shape. Also, within a single chart, gives more of an impression of the pattern as a whole (in contrast to comparing a particular peak to another peak or dip).</em></p><p><em>For the larger charts, we want the viewer to do some comparison across charts. But, we also want them to appreciate &amp; explore a lot of what is happening within each chart. For the smallest charts, we want the viewer to primarily be comparing across charts — to see how different the shape is for induced, c-section, and natural. And, to get a sense of the overall shape for each chart itself. We wouldn’t expect them to be asking more detailed questions about how big is the 8:30am peak vs 9pm dip for c-sections.</em></p><p>…<em> I propose smoothed for the small delivery method charts. I am torn between discrete &amp; smooth for the large ones…What do you think? Do you have a preference between smooth color gradient and discrete color gradient? For all charts? For big? For small?</em></p><p>In reply, from Nadieh to me:</p><p><em>About the gradient/concentric circles. I like the circles better for two reasons, one is exactly what you describe, it helps to “fix” the major problem in circle visuals that it is hard to compare height differences along the angles. My second reason is completely emotional, like I said earlier this week, I actually didn’t like the smooth/perfectness of the gradient. It just felt like “too standard” of a design, not unique enough in a way. And I had some difficulty figuring out what else to do, and </em><strong><em>then I tried the concentric circles and that completely solved that feeling of “wrongness” for me on the design level</em></strong><em>.</em></p><p>And — that was the answer. We went with discretized concentric circles for the 3 main plots and a smoother gradient for the smaller ones.</p><p>It was exactly the right choice, and came from listening to a feeling of “wrongness.” This led Nadieh both to persevere to come up with the winning visual form, and to understand why it was the right answer.</p><h4><strong>A few more details: dots, dashes, smoothing, and the legend</strong></h4><p>Nadieh put the labels inside the ring, with subtle tiny breaks in the line to separate each hour while soft lightly dashed arcs to provide a background grid.</p><p>Jen, our visual editor from Scientific American, added the dot to start each month. This created a nice, subtle anchor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*5q5L-OY4a6kJrlCFyVmy0g.png" /><figcaption>Note the dots to start each month arc, tiny gap between months, subtle dotted line on the axis, and annotations in the gap</figcaption></figure><p>Nadieh introduced loess smoothing to the viz, which was critical for keeping near-minutely granularity without getting distracted by jaggedness. This, combined with the per-minute dots showing the exact values, created a lovely balance of exact detail and overview while maintaining as much detail as possible. It built off of the strengths of my very first charts presented at OpenVis, showing the detail of each of the 1440 minutely data points while putting those dots into a smoother, still-granular context. The only chart we showed the detailed dots on was the minute overview, where they looked almost like a dusting of snow on the chart. For the rest, we stuck just with the smoothed gradient. It just looked right that way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8Tx-AQCsYXC-pRPaSHbfA.png" /><figcaption>Dots showing exact datapoints coupled with a smoothed Loess curve</figcaption></figure><h3>5. Writing the blog post</h3><p>There wasn’t enough room on the printed page for all 6 charts, so on our visual editor Jen’s recommendation we focussed on the 3 levels of seasonality there. And, I was honored that Jen invited me to write an article on Scientific American’s blog going into more detail both visually and textually!</p><p>It was especially fun getting to show off how the same visual form could be quite expressive for these more sprite-like delivery method charts as well.</p><h3>In conclusion…</h3><p>While the results of these design decisions are all visible in the final product, they were made possible by a few important invisible traits.</p><p>These included:</p><p>*A low bar to trying out ideas</p><p>*Trusting gut feelings, even before we could explain them or had an alternative design</p><p>*Open to changing our minds</p><p>*Attention to visual detail</p><p>*Focus on the data and drive the design from that</p><p>*Good communication, even as (especially as) ideas weren’t yet fully formed</p><p>*A great visual editor!</p><p>Thanks to Nadieh and Jen for a great collaboration, and to Amanda for getting this project off the ground in the first place!</p><p>If you want to read more, <a href="https://www.visualcinnamon.com/2017/10/creating-baby-births-visual.html">check out Nadieh’s blog</a> for more of the story behind the viz!</p><h3>Appendix</h3><h4>Why C-Sections?</h4><p>A lot has been written on this topic in the past few years, including articles in <a href="http://www.stltoday.com/lifestyles/health-med-fit/health/st-mary-s-hospital-has-second-lowest-c-section-rate/article_38258dbb-a906-5e38-9c61-e321c16d6369.html">St. Louis Post Dispatch</a>, <a href="https://www.google.com/search?q=new+york+times+baby+births+c-section+rates&amp;oq=new+york+times+baby+births+c-section+rates&amp;aqs=chrome..69i57.5123j0j7&amp;sourceid=chrome&amp;ie=UTF-8">NYT</a>, <a href="http://www.consumerreports.org/c-section/your-biggest-c-section-risk-may-be-your-hospital/">Consumer Reports</a>, <a href="http://www.modernhealthcare.com/article/20160222/NEWS/160219874">Kaiser</a> showing the effects of a different payment model, <a href="http://www.sandiegouniontribune.com/news/health/sd-me-csection-hospitals-20161027-story.html">San Diego</a> Tribune, Sacramento Bee reporting <a href="http://www.sacbee.com/site-services/databases/article4129666.html">C-section rates by hospital in California </a>ranged from 15% to 64%, the <a href="http://spreadsheets.latimes.com/c-section-rates/">LA Times </a>reporting 2014 rates in California hospitals ranging from 12% to 70%, and a report from the <a href="http://www.pbgh.org/storage/documents/PBGH_C-Section_NTSV_Variation_Report.pdf">Pacific Business Group on Health</a>. Looking beyond the US, C-sections are even more common in Brazil as reported by the <a href="https://www.theatlantic.com/health/archive/2014/04/why-most-brazilian-women-get-c-sections/360589/">Atlantic</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21d0cd7bc54f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part II: One set of data, many stories]]></title>
            <link>https://medium.com/@zanarmstrong/part-ii-one-set-of-data-many-stories-c3d1d1272212?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3d1d1272212</guid>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Thu, 15 Jun 2017 19:37:48 GMT</pubDate>
            <atom:updated>2017-06-19T05:13:02.191Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Or, why a dual y-axis chart is not a normalized delta chart</strong></h4><p>In my original post, <a href="https://medium.com/@zanarmstrong/one-set-of-data-many-stories-7710ed792faf">One Set of Data, Many Stories</a>, I wrote about how I found a particular dual y-axis chart misleading. The core problem was that it had two y-axis for the same metric, with a different scale for each axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*j7k75pBFhfh--Yx866XJIw.png" /><figcaption>original chart from appendix of<a href="https://www.brookings.edu/wp-content/uploads/2017/03/6_casedeaton.pdf"> Brooking’s article</a></figcaption></figure><h4><strong>Isn’t it just a delta chart?</strong></h4><p>Elijah proposed that the problem isn’t about dual y-axis since I could have made it into a “a single axis chart by plotting ‘delta in mortality since 2000’.”</p><p>I like framing this in terms of deltas explicitly, because the point they seem to be trying to make with the chart is about change compared to an earlier point in time.</p><p>I agree that delta charts and dual y-axis charts are perceptually similar <strong>when the scales for the y-axis are the same</strong> but the baselines differ in order to pin both lines to a shared reference point.</p><p>However, if the <strong>y-axis scales are different</strong>, then a dual y-axis chart can be perceptually quite different from a delta chart.</p><h4>Let’s take a look</h4><p>In the original article, I found <a href="https://docs.google.com/spreadsheets/d/1l0t2gEVlyt9FurA4yRnZgQziOEpxvpo2UuqlUw2FMzs/edit?usp=sharing">very similar data from the CDC</a> and remade the chart as closely as I could. The exact data is slightly different than the original, as it’s for a 10 year age range rather than 5 year. But, it tells the same story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*nLHgAvjVBdl4DFnPe2Bnlg.png" /></figure><p>Because R doesn’t support dual y-axis charts, I’ve made them side-by-side.</p><p>I’d argue that side-by-side charts are slightly better than dual-axis because it implies that there is some difference between the charts. However, these charts still share the fundamental problem of the original: implying a direct comparison between two charts which have different y-axis scales for the same type of data. In both side-by-side and dual y-axis views, it appears that mortality rates for whites and blacks saw similar declines through the early 2000’s and the diverged since ~2009 or ~2011.</p><p>The fundamental problem isn’t actually that it’s two y-axis on the same chart. Rather, the fundamental problem is visually equating two y-axis that have different scales for the same metric.</p><p>Here are the same two charts, but using the same y-axis scale for both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*9TJBCcOEs8s9t0FPio6TIw.png" /></figure><p>Now, here is the suggested delta chart, showing difference in mortality compared to each line’s 1999 value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*a7Bgn7eJwwzd7J1QsWZ8Cg.png" /></figure><p>So, yes — the delta chart and the dual y-axis with shared scale do look essentially the same.</p><p>But, they look very different from the original chart.</p><h4>Percent change</h4><p>It might be better to compare percent differences rather than absolute differences in this case. Dropping from 50 to 45 deaths per 100,000 people might be more significant than dropping from 150 to 145, it’s a larger drop as a percent of mortality rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*o1vUVRz1Zw4876xgG1W_mQ.png" /></figure><p>The red lines look the same, as the scale is determined by the min/max which both come from the red line. The blue line, however, shows greater variation in the percent change chart than the difference one.</p><p>This is no longer equivalent to a dual y-axis chart with shared y-axis scale.</p><p>But, I think that’s a good thing because the goal is to compare later values to the earlier values — and the percent change better captures the meaningful comparison.</p><p>Interestingly, you could get a similar visual effect by using dual axis. This does mean that the y-axis have different scales and different baselines (to align the starting points). In this case, the scale is determined by setting a 5% change from the 1999 value, or a difference of 8.72 for red vs 2.8 for the blue, to be equal. The baseline is then determined by aligning the starting values to be the same distance from the bottom of the chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*r2z4sslEHJU0JNM3eL9sjQ.png" /><figcaption>Y-axis scale for each chart chosen so that percent change is comparable between charts. Baseline floating as well.</figcaption></figure><p>While possible, I think this approach is quite problematic. It’s not clear from the charts *why* the y-scales and baseline were chosen. There is no clue that percent change is even part of the story, much less driving the scale and baseline. These decisions appear arbitrary and changeable, even though they were determined by the data.</p><p>In contrast, in the chart where both lines use the same percent change y-axis, it is explicit that percent change is driving the both the content and form of the visualization.</p><h4>Focus on the story: Percent change since 2009</h4><p>Arguably the point of the original chart was to highlight the divergence since 2009, not since 1999. Adam Pearce pointed out that this could have been achieved by using a delta chart that both pinned to the 2009 data and focused only on the data from 2009 onward. In this case, I used percent change since 2009. This makes the implicit comparison to a 2009 explicit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*Vbzn31Vfwn3IHGWNnxAZHw.png" /></figure><p>This emphasizes that mortality rates have declined for blacks/African Americans while they have risen for whites relative to the 2009 data.</p><p>This chart doesn’t tell the whole story, of course. No chart does. And, as with any chart, it is worth questioning the extent this story is meaningful without the larger context. That said, I do think this chart tells a succinct story that is supported by the data.</p><p>Moreover, not only does it avoid the same problems of the original chart, but <strong>the choice of form reflects the story itself. </strong>This is story about <strong>change</strong> relative <strong>to a point in time</strong>. The chart’s form matches the story, and reflects the data.</p><p>My hope is that this chart would create a better shared understanding of exactly what aspects of the data we’re focussed on, and thereby create a better conversation about what we should learn or do based on this data.</p><h4>In Conclusion</h4><ol><li>A dual y-axis chart is only similar to a normalized delta chart if the y-axis scales are the same</li><li>Splitting a dual y-axis chart into two side-by-side charts doesn’t fundamentally solve the problem of having two y-axis with different scales</li><li>Choosing a chart form that is more appropriate to the story in the data is not just about avoiding “breaking a data visualization rule”, but can also be more effective in focussing on and telling the intended story.</li></ol><p>Thank you to Elijah &amp; Adam for the conversation that led to this post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3d1d1272212" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One set of data, many stories]]></title>
            <link>https://medium.com/@zanarmstrong/one-set-of-data-many-stories-7710ed792faf?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7710ed792faf</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Mon, 03 Apr 2017 06:37:56 GMT</pubDate>
            <atom:updated>2017-06-21T18:07:02.912Z</atom:updated>
            <content:encoded><![CDATA[<p>In March 2017, Brookings Institute put out a paper by Case &amp; Deaton on <a href="https://www.brookings.edu/wp-content/uploads/2017/03/6_casedeaton.pdf">Mortality and Morbidity in the 21st Century</a>.</p><p>This report got picked up in the news.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SP4ZN3rxVfErvAhEpR32Xw.png" /><figcaption>Google News results for “Case andDenton”</figcaption></figure><p>It also inspired a number of blog posts questioning or supporting the findings including from <a href="http://andrewgelman.com/2017/03/23/mortality-rate-trends-age-ethnicity-sex-state/">Gelman</a> (more questioning) and <a href="https://noahpinionblog.blogspot.com/2017/03/the-blogs-vs-case-deaton.html">Noah Smith</a> (more supporting). Gelman had also <a href="http://andrewgelman.com/2015/11/06/correcting-rising-morbidity-and-mortality-in-midlife-among-white-non-hispanic-americans-in-the-21st-century-to-account-for-bias-in/">questioned</a> parts of their related 2015 article. That said, he “was in agreement with Case and Deaton’s main point, even if I thought they were wrong about the direction of the trend and I was skeptical about their comparisons of different education level.” Instead, he argued that “The news media — left, right, and center — had a pre-existing narrative of middle-aged white malaise, and they slotted the Case and Deaton reports into that narrative.”</p><p>Some aspects of the article are certainly concerning. For example, they point out that deaths due to drugs alcohol and suicide are increasing in the US for men &amp; women aged 50–54. This is not the case in comparable countries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wH-32a6jJYeyrTItbkZbJg.png" /></figure><p>However, they present other charts that I found quite questionable. Specifically, in the Appendix they point to heart disease mortality rates for women aged 50–54.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*uIV4zJjIeSbxuZbzpwh9Zg.png" /></figure><p>Upon first glance, my immediate take away is that white mortality rates (in blue) have surpassed black (in red), rising starkly in recent years.</p><p>This is not true. Digging in, you might notice that there are two different y-axis being used for the same mortality metric. For whites, the axis goes from 5o-58 deaths per 100K. On the right, for blacks, the y-axis ranges from 115 to 165 deaths per 100K. So, in 2015, the red line for blacks ends in the bottom right corner at 115 deaths per 100K while the blue line for whites ends in the upper right corner representing a much smaller 56 deaths per 100K population.</p><p>You might argue that the trend comparison is what is important, and these axis allow this comparison. I question that.</p><p>One of the best descriptions I’ve heard for data viz is that: when the data is different, the viz should look different and when the data is similar, the viz should look similar.</p><p>If you allow yourself to have two y-axis for the same metric, with both a different scale on each axis and a different base value, then you can make a lot of charts with the exact same data that look very different.</p><p>To replicate this, I found very similar data from the CDC. It is slightly different, as it’s for a 10 year age range rather than 5 year, but I think you’ll agree that it’s close enough. Data is <a href="https://docs.google.com/spreadsheets/d/1l0t2gEVlyt9FurA4yRnZgQziOEpxvpo2UuqlUw2FMzs/edit?usp=sharing">here</a>, if you want to play along at home.</p><p>I actually can’t use ggplot2 in R to plot two y-axis on the same chart, because Wickham believes “plots with separate y scales…are fundamentally flawed” -<a href="https://stackoverflow.com/questions/3099219/plot-with-2-y-axes-one-y-axis-on-the-left-and-another-y-axis-on-the-right">stack overflow</a>. So, I’ve plotted them side-by-side. This is for women aged 45–54 in the US, showing deaths due to heart disease per 100K people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5jCtsw8OyoLSZehgvxX_A.png" /></figure><p>Let’s look at this same data in some other forms. How about with less extreme axis?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRAk7meHWNi_TmsRL4Ji9g.png" /></figure><p>Or, with the same y-axis?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0m9PuA5zXBs29Ael20MCyA.png" /></figure><p>What if it included zero also?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-FVRZbsluoEF4651_sk7pQ.png" /></figure><p>Maybe even a higher max y value?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Abwywx_LN-RQ4dFmrmCM-w.png" /></figure><p>Do you get the same take-away from each of these charts? Or does your experience and impression change based on the different y-axis? Which one is “right”? Keep in mind that these charts all show EXACTLY the same data.</p><p>Here is another view, with the two categories on the same chart, sharing a y-axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l04QOTk8veHRrRN5GuFtUg.png" /></figure><p>While there might be times where you want to have a different y-axis, perhaps to normalize the data in some way, it should only be done with caution and with thoughtfulness (and explanation) for why it is being done.</p><p>In all other cases, be wary of how your choices for axis may impact the interpretation of the chart.</p><p>[Edit: keep reading in <a href="https://medium.com/@zanarmstrong/part-ii-one-set-of-data-many-stories-c3d1d1272212">Part II </a>— all about how delta charts relate to dual axis]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7710ed792faf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Shapes of Emotions]]></title>
            <link>https://medium.com/hi-stamen/the-shapes-of-emotions-72c3851143e2?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/72c3851143e2</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[dalai-lama]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Wed, 27 Jul 2016 19:38:47 GMT</pubDate>
            <atom:updated>2016-07-28T15:38:47.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dR1h1MTwNKqk_M-go_lgVg.jpeg" /><figcaption>Getting design feedback on the Atlas of Emotions from the Dalai Lama</figcaption></figure><p>One of the core visualizations in the <a href="http://www.paulekman.com/atlas-of-emotions/">Atlas of Emotions</a> shows the range of states of each of the 5 emotions (anger, fear, disgust, sadness, and enjoyment). For example, annoyance, argumentativeness, and fury are all states of anger. But, the states vary quite a bit in terms of their intensity: annoyance is relatively mild, fury is always highly intense, and argumentativeness can be mild, intense, or anything in between. The states of each emotion are shown in a graph. For each emotion, there is a shape, color, and animation that is specific for that emotion’s states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IveMan1jgKwNJ-s5WOfCVA.png" /><figcaption>Designed shapes for each set of emotional states</figcaption></figure><p>While many types of visualizations strive to be easy to interpret, the “charts” representing the states of each of the 5 emotions goes further. The reader should get an impression of emotion and intensity of emotional states without ever really consciously interpreting it.</p><p>Different states of anger, like fury and annoyance, are represented by red triangles. In contrast, states of fear are purple faceted waves which “feel” very different than sadness’ soft, heavy blue bubbles or disgust’s green glops.</p><p>Additionally, the fact that <em>fury</em> is distinct and pointy and set far to the right should give a sense of high intensity compared to <em>annoyance’s</em> smallness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwrcUqeem6XU4qUYNfdxVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Wz0GEzanKKgyXsy-gUyxw.png" /><figcaption>“Annoyance” is low intensity compared to “fury’s” high intensity</figcaption></figure><p>The Atlas of Emotions was a wonderfully collaborative project. In <a href="https://medium.com/@nicolette_hayes/47044cee8bd3">Embracing the Abstract in Data Viz</a>, <a href="https://medium.com/@nicolette_hayes">Nicolette Hayes</a> describes her iterative process designing these shapes. Beyond the original design, defining and creating these shapes in the browser offered some interesting technical challenges, especially since they needed to animate and fit a full spectrum of aspect ratios. Throughout the rest of this article I’ll share some of the visual effects that helped give this intuitive sense of an emotion, the ways I addressed various challenges, and what we learned in that process.</p><h4>Encoding intensity</h4><p>For all 5 emotions, each shape is simply a variation of a theoretical triangle in which the corners mark 3 meaningful points. The left and right corners of the base show the minimum and maximum intensity of that emotion, while the height shows the average intensity. For example, an intense state of disgust, like <em>loathing</em>, is very tall and far to the right. In contrast, <em>dislike</em> is of mild to middle intensity so is shown on the left side of the graph, with a wide base, and isn’t very high. These aren’t meant to be exact quantified values, but indicative of the differing intensity of different states of an emotion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYlONbVZYl4ea7z1irGqlQ.png" /><figcaption>The 7 states of Disgust, each state represented by a green shape indicating the intensity</figcaption></figure><p>In addition to position, the increasing intensity from left to right is reinforced in the color gradient from left to right <em>within</em> each state shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*z_wv3tkYHodQiS57wSx3-A.png" /><figcaption>In the shape of the “amusement” state of enjoyment, the color intensifies from yellow at the left to a rich orange/red</figcaption></figure><h4>Creating a shape that is a feeling</h4><p>While intensity is encoded the same way in each emotion, the shape, animation, and color are designed to be different — to match the emotion that they embody.</p><p>How do you make a shape that gives a qualitative sense of an emotion? How do you create a shape for fear?</p><p>Moreover, because of the entering animation and varied aspect ratios, the shapes had to be automatically defined based on the 3 “corners” of the underlying defining triangle. They couldn’t be brought in as a single image or hardcoded in some simple way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*mQCOKXy1L-elX7yPxq10LQ.gif" /></figure><h4>A core technical challenge</h4><p>Challenge: Start with 3 coordinate points and use those to define a path (with math) to create a shape that has a feeling.</p><p>When I started on the project, Nicolette had already created a set of amazing designs in illustrator and Eric had implemented a working version for each in D3. However, for several of the shapes, we wanted to go further — to get closer to Nicolette’s design and create a shape more specifically designed to match that emotion.</p><h4>Fear</h4><p>Nicolette’s original design for fear’s states had hard edges with varied angles which created a sort-of faceted wave shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cX-DqprfJ3_bNDmi." /><figcaption>Original design for fear</figcaption></figure><p>In D3, Eric defined the control points for bezier curves to capture the wave form of the shape. He directly constructed the path string based on calculating the values for each control point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*rJXp9-x3XZJiyQj_46cJLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kU_5sHYlLZG-a0tU." /><figcaption>original implementation</figcaption></figure><p>But, they were still too… beautiful. They literally didn’t have the ‘edginess’ we were hoping for. He left a note in the code:</p><pre>// TODO: degenerate per “Roughen” Illustrator effect (or similar)</pre><p>I looked at roughen, but it wasn’t clear what math was behind the effect. Instead, to get closer to the design ideal and get more of a sense of the angularity of fear, I decided to facet the edges. My goal was to keep the overall shape, but break the smooth curves up into a set of line segments.</p><p>In short, I wanted to define a point ~30% and ~60% of the way along the curve, and then draw straight lines between those points. To do this, I needed to get the x-y coordinates of the points on this path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e4K8FN0VO6iVkEuR." /><figcaption>Sketch of relationship between smooth curve and faceted edges</figcaption></figure><p>But, how do I calculate the x and y values for those points?</p><p>One option was to construct a curve, and then using<a href="http://bl.ocks.org/mbostock/1705868"> PointAlongPath</a> to get these points. There was a few reasons why this wasn’t ideal, especially with the animation. Instead I wanted to calculate the points directly if possible.</p><p>To do this, I started with the original control points that Eric used. Then used the actual bezier function, as defined on <a href="https://en.wikipedia.org/wiki/B%C3%A9zier_curve">Wikipedia</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*fqzcXqyNODILx8v4bY9tcw.png" /></figure><p>Jason Davies has a <a href="https://www.jasondavies.com/animated-bezier/">nice animated illustration</a> of how this works. A quadratic bezier is defined by 3 points: P0, P1, and P2. Additionally, these functions are “parametric”, so they’re defined by a variable “<em>t</em>”. Each value of “<em>t</em>” between 0 and 1 represents a point along the resulting curve. To construct the whole curve, you calculate the value of B(<em>t</em>) for all values of<em> t</em> between 0 and 1.</p><p>Based on how these curves are defined, when <em>t</em>=0.3, it doesn’t actually mean that the resulting point is 30% of the way along the curve. It turns out that finding the point that is <em>exactly</em> 30% of the distance along the path takes <em>a lot</em> of calculation which can be difficult and slow.</p><p>However, I didn’t need mathematical exactness in this situation. Close was close enough. So, I simply input specific values for <em>t</em> to find points that were part of the way along the left and right curves, which made for a very fast calculation. Then I adjusted to find values of <em>t</em> that looked “right.” In the end .4 and .76 worked well on the left, and .1 and .6 for the right side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*TSuMvwoK2MRIvMw6nimNyw.png" /></figure><p>Then I stitched the resulting points together to define the path, with straight lines between the points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*G58CN3wAX3BXenjVj9Lr9Q.png" /></figure><p>The crux of this solution was:</p><p>(1) realizing that I could just use the original mathematical function, rather than the browsers implementation of bezier curves</p><p>(2) mathematical exactness wasn’t required in constructing these faceted edges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CKqx-gxn3CsPh81P." /><figcaption>Final result: wave form with concave faceted edges</figcaption></figure><p>The original design had some convex facets, as well as concave. My initial experiments with this were unsatisfactory, and we were satisfied with this expression of fear. So, it was time to move on to disgust.</p><h4>Disgust</h4><p>Disgust was designed to have uncomfortably uneven edges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cMZt_pyF9D1Rtvic." /><figcaption>Designed images for disgust</figcaption></figure><p>Eric had implemented a placeholder shape for disgust, but knew we wanted something less clean and more … disgusting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FcufiQ0AZ5tHKU2y." /><figcaption>Placeholder for disgust shapes</figcaption></figure><p>To get this sense of uncomfortable unevenness, I started with a triangle, found a bunch of points randomly dispersed along the edge, offset these points from the edge perpendicularly, and then drew a smooth curve between the new points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pnzC_ktf1kGwufKsxEO3yA.jpeg" /></figure><p>In this method, there were a number of parameters, or “levers”, I could pull to tweak the feeling of the shape. Things like the number of points along the edge, how far offset they were, how much I varied how I placed the points and offset, how I interpolated between the points, etc.</p><p>This gave a lot of ways to adjust the shape: from my first attempt, through iteration, to something we liked, to going too far… and finally deciding on a great set of input parameters. The best way to see this iteration is to follow the conversation Nicolette and I had.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*T71FA0kNqo-zkNuY." /><figcaption>First attempt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/0*jCkunUy-MULiZJV9." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8SRQuDsPKdgqXFt3." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*-Hg4bjAqvV3ptY77." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*Uj8lfwVgBgy8sydw." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CGoONF8z8crogAAw." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*1i_z6eR2JLzKvf35." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jgwDovqZrdpIiRSt." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uEDnKp--_GHQPWR1." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*55j1Mhp3YfC68XVg." /></figure><p>One key to disgust was creating a system where I could easily tweak parameters to change the feeling. The other was knowing when to stop.</p><h4>Enjoyment</h4><p>Eric had originally implemented a beautiful set of bulbous enjoyment shapes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*llMbiSleJ12J79FZ2G-CNQ.png" /></figure><p>The only problem was that they were so big and there were so many states of happiness, that they overlapped each other on the chart to become sort of a blur. It was also hard to match the shape to it’s label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qoLVyC99RWkPmgJu6gMiw.png" /></figure><p>Therefore, Nicolette designed an alternative shape in Illustrator, which I implemented in SVG.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*n-HMCjD-JOBJqLi1Z_IXvg.png" /></figure><p>Both implementations were based on using the 3 original points to defining some control points, thereby creating the path string for the shape.</p><p>The main difference was: (1) the position of the control points and (2) that I repeated the middle point in order to get the point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*ob_Ng98ZmRiVUq3ewTCtqg.png" /><figcaption>path construction for bulbous enjoyment states</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Q9js9JptMR9LBp1_xVGEew.png" /><figcaption>path construction points for pointy enjoyment states</figcaption></figure><p>To figure out where I should place the control points, I looked over Nicolette’s shoulder. She literally showed me where they were located in her version in Illustrator, and I generalized this.</p><p>The key, in this case, was respecting the fact that just beneath the surface of beautiful illustrations in Illustrator is a whole lot of math. Seeing how the shapes were constructed in one tool showed me how I should define them in SVG. It’s also interesting that two fairly different shapes could be created from very similar code, just by adjusting the control points directly and repeating the middle anchor point.</p><h4>Final Thoughts</h4><p>One of the most wonderful parts of the javascript package D3, and the web in general, is that the math is close to the surface. So you can literally draw with math. This may sound quite abstract or un-feeling, but in this case it was the key to creating shapes that conveyed an intuitive sense of a feeling.</p><p>For me, it was also a creative exercise, to think about what the crux of the challenge was and what abstraction best defined each shape that Nicolette had designed. And, how could I generalize that abstraction.</p><p>Additionally, in some cases, like fear, being imprecise was no problem, while for disgust small changes in parameters meaningfully changed the “feel” of the shape.</p><p>Lastly, while Adobe Illustrator is generally thought of as a tool for designers it actually exposes a lot of the math behind the scenes. For example, by showing the actual control points for bezier curves. So, the design itself can be a great starting point for writing generalizable code.</p><p>The shapes of emotions weren’t the only part of this project in which the design challenge and technical challenges were intertwined. To find out more, read <a href="https://medium.com/@ericsoco">Eric Socolofsky’s</a> <a href="https://hi.stamen.com/finding-calm-in-the-atlas-of-emotions-185b2e665ff1#.mnb1c91dd">Finding Calm in the Atlas of Emotions</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72c3851143e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hi-stamen/the-shapes-of-emotions-72c3851143e2">The Shapes of Emotions</a> was originally published in <a href="https://medium.com/hi-stamen">Hi.Stamen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why choose? Scrollytelling & Steppers]]></title>
            <link>https://medium.com/@zanarmstrong/why-choose-scrollytelling-steppers-155a59dd97fe?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/155a59dd97fe</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Tue, 07 Jun 2016 17:48:37 GMT</pubDate>
            <atom:updated>2016-06-13T19:00:34.053Z</atom:updated>
            <content:encoded><![CDATA[<p>“Scrollytelling” is an online storytelling technique in which more and more content is revealed as the user scrolls down the page.</p><p>“Steppers” are also a storytelling technique, especially for stories based on a data visualization, in which the user clicks from step to step to see the story develop.</p><h4>Scrollytelling Example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyrkqiCbRe3JlpsH3Kvw-g.png" /><figcaption>Scrollytelling exemplified by Tony Chu’s <a href="http://letsfreecongress.org/">Let’s Free Congress</a></figcaption></figure><h4>Stepper Example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*3KncB2rmnF58EuyvuQgFhw.png" /><figcaption>Numeric Stepper (1,2,3…) from <a href="http://www.nytimes.com/interactive/2013/02/04/science/girls-lead-in-science-exam-but-not-in-the-united-states.html">New York Times</a></figcaption></figure><p>I’ve been hearing a lot of people talking about “scrollytelling vs steppers” recently, sparked in part by Robert Kosara’s blog post <a href="https://eagereyes.org/blog/2016/the-scrollytelling-scourge">“The Scrollyteling Scourge.”</a></p><p>Like the “which visualization is best” and the “are pie charts really evil” debates, these types of questions don’t really make sense to me.</p><p>It’s like asking “which is the best tool: a hammer or a wrench?” There is no way to answer that question unless you know what the person is trying to do. Or, it’s like asking “which is best: blue or orange?” You also can’t answer that question without context, and even then it might still be related to personal preference.</p><p>The choices we make in data visualization and storytelling depend on so many things. It depends on your data. It depends on the crux of the meaning in the data and the story that you want to share. It depends on your audience. It depends on how you expect your audience to consume what you’ve created. It depends on your goal. It definitely depends on context. It depends on if it’s a one-off, or a tool that people will use again and again. And, it even depends on aesthetics and what the experience feels like. It just depends.</p><p>In short, like everything else in data viz, it’s not the one tool is better/worse. Rather it depends on finding the best technique for the situation and being cognizant of potential strengths/weaknesses. This awareness can help us decide when to use one technique or another. Moreover, if you choose one, you could add other affordances to make up for its weaknesses.</p><h3>Strengths and Weaknesses</h3><p><strong>context vs lightweight progression</strong></p><p>Steppers provides very clear context and very explicit navigation.</p><p>Scrollytelling makes it easy to keep going in a very lightweight seamless way, without having to decide to click… and click again… and click again. Alberto Cairo refers to this downside of stepper-style interaction in his post “<a href="http://www.thefunctionalart.com/2016/05/that-time-when-i-made-readers-click-50.html">That Time When I Made Readers Click 50 Times in an Infographic</a>.”</p><p>In a recent conversation, Shirley Wu and Miles McCrocklin summarized it this way: “scrolling is valuable because it’s a light, relatively frictionless way for a user to progress through content, while stepping is valuable because it gives context to the user of where they are and out of how many.”</p><p>More than just ease, scrolling provides continuity. There is a <a href="http://mcfunley.com/design-for-continuous-experimentation">fantastic talk</a> about the discovery that infinite scroll was a bad idea for Etsy. Having infinite scroll instead of pagination led to fewer clicks, fewer items “favorited”, and fewer purchases. No fun for Etsy, and possibly not as satisfying for users either. There are a lot of theories for why this is, but my favorite is that it’s hard to stop and take action when there is always something more. The end of a page or a stepper creates a point of decisions: do I click to the next set of pages? Or, do I take some other action like clicking, purchasing or favoriting?</p><p>Unlike Etsy, the goal in data visualization is often to keep the user engaged throughout. There is rarely a call to action, or it is a single call to action at the end, as in <a href="http://letsfreecongress.org">Let’s Free Congress</a>. In these cases, there is value in the continuity of scrolling versus coming to a point of decision to either click ‘next’ on the stepper or do something else.</p><p>You could imagine other visualization scenarios in which the reader has a strong incentive to go through all the content, perhaps for a course. For these, perhaps having a purposefully moment to pause between steps would be an asset rather than a detriment.</p><p><strong>who controls the pacing between steps</strong></p><p>Secondly, steppers and scrollytelling differs based on who controls the timing/experience of the animation between steps.</p><p>On the one hand, steppers can offer very crisp/clean animation between steps because the movement between steps is discrete and is triggered. Similarly, the annotations can be very customized, because the steps are discrete. You know exactly what the user will see at each step, and there are no half steps. Or .87ths of steps.</p><p>While there are advantages to the creator having tight control over the animation between steps with a stepper, there are also advantages to giving the user tight control of the animation pacing via scrollytelling. Tony Chu’s<a href="http://www.r2d3.us/visual-intro-to-machine-learning-part-1/"> A Visual Introduction to Machine Learning </a>is a fantastic example of how valuable this can be.</p><p>Machine learning is complicated. And, as I’m walking through the explanation, I found myself often backing up slightly to slowly move through an animation. The animations meaningful, not decorative, and show how data is transitioning from chart type to chart type. By being able to effortlessly slow transitions down, speed them up, or pause, I can see (and feel) those context switches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQ7ItBycdAjQlTnnZT-B3w.gif" /><figcaption>If scrolling controls the speed of the animation, a user can slow it down, speed it up, back up, and pause.</figcaption></figure><p><strong>discrete vs continuous</strong></p><p><a href="https://eagereyes.org/blog/2016/the-scrollytelling-scourge">Kosara</a> argued that it’s bad practice to use “continuous scrolling through a story with discrete steps,” and pointed to this piece as a problematic example.</p><p>Whether this principle is right or wrong, I’d actually argue that A Visual Introduction to Machine Learning is not actually a set of discrete steps. Rather it is a continuous experience. The transitions are not the spaces between the steps, but are a meaningful part of the content.</p><p>There are other scrollytelling examples, like the <a href="http://www.nytimes.com/interactive/2015/09/30/business/how-the-us-and-opec-drive-oil-prices.html">New York Times’ price of Oil</a>, in which the user controls <em>when</em> the animation is triggered via scrolling but not the timing of the animation. I love the immersive experience, but I actually wish that it behaved a bit more like the Machine Learning piece in which I could control the speed of the transition with the speed of my scroll.</p><p><strong>what to do?</strong></p><p>In terms of deciding which approach to use to drive an experience, you should think about what it’s going to feel like. Can you make it feel seamless and lightweight if it’s scrolling? Or make it easy to step if stepping? Do you want to give very clear and explicit context? Who should control the pacing? Are the transitions part of the content? Are you going to lose your users if you give them the choice to click ‘next’ or not?</p><h3>Idea vs Execution</h3><p>When evaluating the merits of scrollytelling, steppers, or other forms, we should separate the validity of the concept from the execution.</p><p>For example, scrollytelling can be hard to execute well. There is nuance in how to make the scroll feel fluid, be triggered, stop at reasonable spots, and feel natural. It’s also appealing to combine scrolling telling with computationally heavy animations or lots of large media images/videos. As discussed above, one of the greatest strengths of scrollytelling is how effortless it is. So, if it’s sluggish or unresponsive or confusing (“scroll-jacking”), then it’s no longer has the advantage of effortlessness.</p><p>For example, I love the idea of the Upshot’s <a href="http://www.nytimes.com/interactive/2014/06/05/upshot/how-the-recession-reshaped-the-economy-in-255-charts.html">How the Recession Reshaped the Economy, in 255 Charts</a>. But, on my computer it feels sluggish and “heavy” which breaks the “easy” or “light” feeling that scrolling provides. But, if it felt as weightless as Tony’s<a href="http://letsfreecongress.org/"> Let’s Free Congress</a>, then I think it would be delightful.</p><p>Scroll-jacking is also a challenge, as the browser might seem to take control of the experience away from the user which can feel jarring. Ironically, when I opened this article on <a href="https://www.sitepoint.com/scrolljacking-accessibility/">Scrolljacking and Accessibility</a> the text moved around several times before it settled. First a big ad opened on top, and then another big visual thing appeared from the bottom. It was the kind of thing in which I literally took my hands away from the keyboard while waiting for it all to settle down.</p><p>Maybe the key question is who should have the control over pacing/position, and if the form matches that.</p><p>For steppers, a downside can be the “cost” of clicking. But, based on execution, this can be very central and natural to the experience. In others, you might have to move your mouse or be tempted to scroll to written content below instead of stepping through.</p><h3>Do I have to choose?</h3><p>In a recent conversation, Kennedy Elliot said “throughout scrollytelling vs stepper discussions, I often wonder if there are ways to further hybridize the two.”</p><p>Looking around the internet, I found a number of examples in which people mash-up these two basic concepts, or address similar needs/challenges in other ways. In particular, there were a number of examples of adding context to scrollytelling or brining the stepper more into the center of the experience. But, there is likely so much more we could do.</p><p>Here are just a few interesting adaptations.</p><p><strong>scrollytelling with chapters</strong></p><p>To break up a very long article into manageable scroll-able meaningful chunks, Sarah Slobin used scrollytelling, but with chapters, in this Wall Street Journal long form article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNybMjTV9Wwc1HOk58lf5w.png" /><figcaption><a href="http://projects.wsj.com/trials/#chapter=1">Trials</a> from Wall Street Journal</figcaption></figure><p>The footer is also a photo-based “stepper” or table of contents, with also a next/previous arrow showing previous and upcoming chapters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ubfb5i2v5hoS9nzHrOhGZA.png" /><figcaption>Trials visual “Table of Contents”</figcaption></figure><p>Off-topic, but I also just love Sarah’s handwritten style font. The story is so much about the mix of real life children and hard core science/medicine, and it’s interesting to see this reflected in the design.</p><p><strong>scrollytelling with a progress bar</strong></p><p>Another Wall Street Journal article by Sarah heavily uses scrolling to tell the story, but provides a subtle black progress bar at the top to show you how far you’ve gone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9xSHJ3vh9TsnSSqoRqw8Q.png" /><figcaption>WSJ: <a href="http://www.wsj.com/articles/in-shattered-syria-war-divides-neighbors-1418990806">In Shattered Syria War Divides Neighbors</a></figcaption></figure><p>It also has steppers within parts of the multi-media article. Not sure it works totally seamlessly (at least it got a little sluggish on my computer), but it’s an interesting idea.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*xrXC7GN5a41xIO9CPMEPfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*PB8vWzoF67kmNAzYbg4geg.png" /></figure><p><strong>small multiples for static “stepping”</strong></p><p>In print, there is no option for scrolling or stepping. But, Hannah Fairfield used annotated small multiples to step the reader through different parts of the story, in a sort-of small multiple time line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_yjXHxdV9yLMBDlKT--Cg.png" /><figcaption>For print: small multiples step you through the story in Hannah Fairfield’s <a href="http://www.nytimes.com/imagepages/2010/05/02/business/02metrics.html?version=meter+at+0&amp;contentId=&amp;mediaId=&amp;referrer=http%3A%2F%2Ftopics.nytimes.com%2Ftop%2Freference%2Ftimestopics%2Fpeople%2Ff%2Fhannah_fairfield%2Findex.html&amp;priority=true&amp;action=click&amp;contentCollection=Business%20Day&amp;module=RelatedCoverage&amp;region=EndOfArticle&amp;pgtype=article">Driving Shifts Into Reverse</a></figcaption></figure><p><strong>forward/backwards stepper embedded</strong></p><p>While many steppers are outside the visualization, this one is embedded. It only offers forwards and backwards, with a progress bar, so is a bit of a hybrid between a stepper and scrollytelling since you can’t skip steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtgNHer1BKs5GlVv_zHPKg.png" /><figcaption>Embedded Stepper from <a href="http://www.vox.com/2016/1/4/10709366/immigration-america-200-years">Vox</a></figcaption></figure><p><strong>scrolling with stepper dots for context</strong></p><p>This New York Times article on helmets and motorcycle fatalities is navigated by scrolling, with a vertical indicator to show how far you’ve gone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JvE-43KI46kNm3w4Fuc1Sg.png" /><figcaption>New York Times: <a href="http://www.nytimes.com/interactive/2014/03/31/science/motorcycle-helmet-laws.html">Fewer Helmets, More Deaths</a></figcaption></figure><p><strong>stepping down or sideways</strong></p><p>In Stamen’s <a href="http://www.paulekman.com/atlas-of-emotions/">Atlas of Emotions</a> (which I worked on), you can step “down” to the next concept … or side to side to get to a different emotion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Kfe0v2YofB2y53XJottGw.png" /></figure><p><strong>a video moves you through the story, but gives a chance to interact</strong></p><p>In <a href="http://www.fallen.io/ww2/">The Fallen of World War II</a>, the video moves you through the story instead of having to scroll or click. But, it also pauses to give you a chance to interact on several occasions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O59lNIJQnQ3vTiF9mPjaPg.png" /><figcaption>Fallen animation</figcaption></figure><h3>So… How Do You Do It?</h3><p>Fortunately, whether you want to make a stepper or do scrollytelling, Jim Vallandingham has a tutorial to teach you how to do it: <a href="http://vallandingham.me/stepper_steps.html">Steps for Building a Stepper Visualization</a> &amp; <a href="http://vallandingham.me/scroller.html">So You Want To Build a Scroller</a>(OpenVisConf 2015 video <a href="https://openvisconf.com/2015/">here</a>). Tony has also built a <a href="http://bl.ocks.org/tonyhschu/af64df46f7b5b760fc1db1260dd6ec6a">bl.ock example</a> to share/explain his technique.</p><h3>Want more?</h3><p>Bostock’s <a href="https://bost.ocks.org/mike/scroll/">How To Scroll</a></p><p>Adam Pearce’s <a href="http://1wheel.github.io/graph-scroll/">graph-scroll.js intro</a></p><p><a href="https://vimeo.com/channels/eyeo2012/45537437">Amanda Cox’s 2012 Eyeo Talk</a> including discussing steppers</p><p><a href="http://vallandingham.me/scroll_talk/examples/">Scrollytelling Examples</a>, collected by Jim</p><p>PS. Thank you to Kerry Rodden for inspiring me to write this!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=155a59dd97fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Amazon with Code and Data]]></title>
            <link>https://medium.com/hi-stamen/exploring-the-amazon-with-code-and-data-5750afec6ef2?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5750afec6ef2</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Wed, 06 Apr 2016 01:02:33 GMT</pubDate>
            <atom:updated>2016-04-06T02:11:46.977Z</atom:updated>
            <content:encoded><![CDATA[<h4>A project with Stamen and National Geographic</h4><p>As a child, I dreamed of being a National Geographic photographer. What could be better than going exploring to find just the right perspective to help everyone appreciate and better understand this amazing world we call home.</p><p>I never expected that I would partially realize this dream in a completely different way. Instead of a camera’s lens, my tools included code, design, maps, and data. My first project with <a href="http://stamen.com/">Stamen</a> was creating an interactive page where users would compare and contrast maps showing various types of human impact across the Amazon Basin. In this way, I collaborated with National Geographic to find the right perspective to help people to explore data to appreciate and understand a very special part of our world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xf_hDdd2YBusg9wEmDAmzQ.png" /><figcaption>Interactive “Explore and Compare” section, part of the Amazon Under Threat project</figcaption></figure><p>From both a technical and design perspective, it was an interesting challenge. The goal was to add functionality on a project that had already launched, which brings in a different set of constraints and challenges than starting from scratch.</p><p>In <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/">this beautiful project</a>, viewers are introduced to the Amazon’s water cycle, forest types, forest strata, and varied human impacts. This last section walks them through a set <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Intro/?nav=true">of detailed maps</a>, each highlighting a different type of human impact on the Amazon Basin. For example, <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Resources/?nav=true&amp;focus=Minerals">the page shown here</a> highlights mineral resources throughout Amazonia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VWQ3Ye4IF2L8yl97." /><figcaption>Mineral Resources in the Amazon Basin</figcaption></figure><p>National Geographic is well known for their map-making, and with good reason. These are wonderfully crafted maps, with careful attention to details about labeling, color, and background context including terrain and rivers. The project was published both online and in print, with shared maps and design between the two formats and between the two collaborating teams (Stamen and National Geographic).</p><p>My challenge was to create <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare">an interactive page</a> in which users could compare and contrast any collection of these maps overlaid on each other. On the one hand, this isn’t a hard problem. There are plenty of maps in which you can toggle layers on and off. On the other hand, there was so much rich information to show and so many colors that had never been designed to be seen together. How could I keep it from being a visual cacophony?</p><p>I had the additional constraint of needing this new page to feel like a seamless part of the already published project, that was both beautifully and thoughtfully designed.</p><p><em>Constraints create good challenges.</em></p><p>My first goal was to identify what “levers” I could pull within the existing code and design framework. I felt like I was on Iron Chef: I couldn’t choose my ingredients but if I could find the right way to use them together it would turn out great.</p><p>One major goal was to focus the user on the foreground: the types of human impact data that they would compare and contrast. To do this, I wanted to pull the wonderful rich, contextual parts of the map like terrain and labels into the background without losing that context entirely.</p><p>I explored applying SVG filters to the HTML images the make up the map, in order to shift the green in the terrain layers to a more backgrounded grey or sepia. This proved problematic for several reasons. On a technical level, SVG filters are only supported for SVG elements, and not for HTML images, in Internet Explorer. Moreover, this diverged too much from the original design and feel of the project.</p><p>Instead, I achieved this objective by creating a slider to control a set of parameters that together brought these layers into the background or to the foreground. Most obviously, the slider controlled the opacity of the terrain base layer and was preset to be mostly opaque when the user first visited. As the slider is increased to full opacity, the terrain becomes an increasingly stronger green, slowly rivers are introduced, and then labels and country borders fade in.</p><p>The second challenge was around the selection interface, legend, and how to encourage thematically meaningful and visually compelling comparisons while also providing the viewers freedom to also compare across any types of human impact data.</p><p>We started with presenting a mostly blank slate for exploration, because viewers had already been introduced to each type of data they might select to compare. Therefore, viewers first see only the mostly-opaque context layers selected and a legend grouped by them. The legend is both informational and where viewers select data to view. Upon selection, the data appears on the map and the detailed legend is revealed.</p><p>We grouped legend items by theme, reflecting the established themes. Layers within a theme had been designed to be viewed together, so we also wanted to encourage those comparisons as they were likely to be meaningful and also visually harmonious. For example,<a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare/?nav=true&amp;focus=Interactive&amp;baseOpacity=0.15&amp;change=a2&amp;selection=%2Ca1%2Ca3"> viewing Fire, Deforestation, and Transport layers together</a> shows that many areas that are affected by all three.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/0*mTpwc6PMJSLafeib." /><figcaption>Comparing transport, deforestation, and fire throughout the Amazon</figcaption></figure><p>We might also notice, that in the center of Brazil, there is an area with a lot of fire where there are almost no roads. Interesting…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*6P4gZO1fiTJUCY5X." /><figcaption>Notice the mostly east/west band of fire, with few contiguous roads</figcaption></figure><p><a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare/?nav=true&amp;focus=Interactive&amp;baseOpacity=1&amp;change=a3&amp;selection=a1%2Ca2">Bringing back in the context layers</a>, and we can see that those fires track the Amazon and the river’s major tributaries. Perhaps this is because rivers also enable transportation, just in a different form than roads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*a0iOLnhDDRwg4ns9." /><figcaption>Adding context, shows the river’s path through these section</figcaption></figure><p>By focusing on the data comparisons first without the context layers, we can observe and explore. Inevitably this inspires questions. With the slider we bring back detailed context layers to help us begin to address our new questions, questions we might not have thought to ask if we were looking at the context and data layers all that the same time.</p><p>In addition to comparisons between themes, <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare/?nav=true&amp;focus=Interactive&amp;baseOpacity=0.16&amp;change=r1&amp;selection=%2Ca1">cross-theme comparisons</a> can also be quite interesting. For example, in some areas it appears that transport (in red) and minerals (in purple) might be related but not in other areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*xJ-cr9iFxqgcnj7e." /><figcaption>Comparing human impact, or potential impact, across themes</figcaption></figure><p><a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare/?nav=true&amp;focus=Interactive&amp;baseOpacity=0.78&amp;change=r1&amp;selection=%2Ca1">Bringing back in the base layers</a>, we can see that the area on the left where minerals and roads overlap is Ji-Paraná while south of Sinop they don’t. This doesn’t answer the question by itself, but could be the first step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RkvRCZvZducE7hO4." /><figcaption>Adding context to the comparison</figcaption></figure><p>There were numerous other details that helped make everything feel more harmonious. For example, I set opacity levels and ordering separately for each data layer to reflect its color and visual dominance so they’d look best when combined. Also, including hash mark fragment identifiers to the URL to keep track of selections meant that if somebody found an interesting comparison they could share those same selections with a friend or colleague.</p><p>Most of all, while I’ve spoken mostly of the challenges, it was great to be adding to something that already had so much good thought and work put into it that I could build upon. I’m happy that a few larger decisions, and <em>many</em> tiny tweaks, were able to make this addition feel like a part of the whole while opening up new opportunities for exploration and comparison. It also helped make a dream come true for me to collaborate with National Geographic, an organization that has inspired me and so many others for over a hundred years.</p><p>A huge thanks to Nicolette for her designs and her advice throughout this project, to Seth, Alan, and Eric S for both technical expertise and valuable perspective, to the whole <a href="http://stamen.com/">Stamen</a> team for being so welcoming, and for Ryan at National Geographic for being such a great collaborator!</p><p>Check out the full project <a href="http://www.nationalgeographic.com/climate-change/explore-amazonia/#/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJd2ofmJi-5X0vPcrnYlKg.png" /><figcaption>Intro to the Amazonia Under Threat project, which the map comparisons are a part of</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5750afec6ef2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hi-stamen/exploring-the-amazon-with-code-and-data-5750afec6ef2">Exploring the Amazon with Code and Data</a> was originally published in <a href="https://medium.com/hi-stamen">Hi.Stamen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trouble, cunning, and a fighting spirit — the key to visualizing data]]></title>
            <link>https://medium.com/@zanarmstrong/trouble-cunning-and-a-fighting-spirit-the-key-to-visualizing-data-bbc3ef3c5aa6?source=rss-bc1eb71ae1c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbc3ef3c5aa6</guid>
            <dc:creator><![CDATA[Zan]]></dc:creator>
            <pubDate>Thu, 08 May 2014 22:42:50 GMT</pubDate>
            <atom:updated>2014-05-09T06:41:06.109Z</atom:updated>
            <content:encoded><![CDATA[<h4>treasures from the past: Anscombe</h4><p>Today’s quote from the past: <strong><em>“The user is not showered with graphical displays. He can get them only with trouble, cunning, and a fighting spirit. It’s time that was changed.”</em></strong></p><p>This is the last sentence of <a href="http://sites.google.com/site/vararey2/Graphs.pdf">Anscombe’s 1973 paper</a> which also presented this now classic image (often now shown in color, as in the title and on <a href="http://en.wikipedia.org/wiki/Anscombe%27s_quartet">wikipedia</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*RQJBFkb0Yorllia-2daRkA.png" /><figcaption>From “Graphs in Statistical Analysis”: visualizing four datasets with identical summary stats reveals differences</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*LU3a4UP-6tcUDZMIybzQSQ.png" /></figure><p>All four datasets have the same major summary stats, including the same linear regression equation and same estimated error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*F5ihtlARZ8FJJA8PuKBoIQ.png" /><figcaption>From “Graphs in Statistical Analysis”: the high level summary stats for the 4 graphs shown above are identical</figcaption></figure><p>Visually, however, the datasets are <em>obviously quite different</em> from each other. While these data sets are obviously contrived, this example illustrates the importance of looking beyond our summary stats to look at the data itself. This type of issue where summary stats don’t tell the full story can, and does, happen with “real” data.</p><p>40 years later we are lucky to have many more tools for graphical displays. Color is something we take for granted (and often overuse!), but must have been something Anscombe longed for. Graphs in spreadsheet tools like Google Spreadsheets or Excel are easily accessible to anyone working with data. Analysts can pivot/facet data into “small multiples” nearly instantly with ggplot in R. The New York Times and developers building with D3 are putting more and more complex data at the average person’s fingertips through their dynamic visualizations.</p><p>Yet, I’d argue that we still need that cunning and fighting spirit. While it’s easier to create graphs now, it’s also easier to create graphs thoughtlessly. Graphs are often a nice-to-have, something we’re asked to add to prove a point (“just give me a graph that shows X”), or are used as pseudo-look-up tables in dashboards. Often we use the easiest graph to create, which is not necessarily the one that we need. They aren’t a natural enough part of our analytic workflows. Nor are we as a society as used to questioning data/analysis the way we question written work. And, as the amount of data we create increases, the challenge of looking at the flood of data increases.</p><p>The fight now is less about being able to create a graph in the first place. Rather, now it is more about how we use graphs in analysis, how we question, and how we dig deeper. We need to keep building good visualization into our analysis process, coupled of course with robust statistics, and into how we communicate.</p><p>So, to those who work with data today, let’s keep up Anscombe’s fighting spirit and visualize our data in a way that will reveal what’s really happening under the surface.</p><p>Original 1973 paper here: <a href="http://sites.google.com/site/vararey2/Graphs.pdf">Graphs.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbc3ef3c5aa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>