<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Data visualization, analysis, coding, and life.</title>
    <description></description>
    <link>http://blog.zanarmstrong.com/</link>
    <atom:link href="http://blog.zanarmstrong.com/feed.xml" rel="self" type="application/rss+xml" />
    
      <item>
        <title>Working with Stamen</title>
        <description>&lt;p&gt;I worked with Stamen this spring on 3 very interesting and varied projects: &lt;a href=&quot;http://www.nationalgeographic.com/climate-change/explore-amazonia/#/Map/Compare/?nav=true&amp;amp;focus=Interactive&quot;&gt;National Geographic Amazon&lt;/a&gt;, &lt;a href=&quot;http://www.paulekman.com/atlas-of-emotions/&quot;&gt;Atlas of Emotions&lt;/a&gt;, and Berkeley&amp;rsquo;s Metagenomics. &lt;/p&gt;

&lt;p&gt;To find out more&amp;hellip; you can read some of the posts on Medium related to my work and these projects. &lt;/p&gt;

&lt;p&gt;Eric Rodenbeck interviewed me about these collaborations, which can be found &lt;a href=&quot;https://hi.stamen.com/stamen-exit-interview-zan-armstrong-d44d06e89d6d#.7ujmfgb3h&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Nicolette, Eric Socolofsky, and I also wrote about building the Atlas of Emotions in &lt;a href=&quot;https://hi.stamen.com/embracing-the-abstract-in-visualized-data-47044cee8bd3#.smx2e9c3n&quot;&gt;Embracing the Abstract in Visualized Data&lt;/a&gt;, &lt;a href=&quot;https://hi.stamen.com/finding-calm-in-the-atlas-of-emotions-185b2e665ff1#.6q7l436ev&quot;&gt;Finding Calm in the Atlas of Emotions&lt;/a&gt;, and my own &lt;a href=&quot;https://hi.stamen.com/the-shapes-of-emotions-72c3851143e2#.yb0exshga&quot;&gt;The Shapes of Emotions&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I also wrote about the National Geographic project: &lt;a href=&quot;https://hi.stamen.com/exploring-the-amazon-with-code-and-data-5750afec6ef2#.ppsd8964m&quot;&gt;Exploring the Amazon with Code and Data&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Wed, 27 Jul 2016 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2016/07/27/Stamen/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2016/07/27/Stamen/</guid>
      </item>
    
      <item>
        <title>PolicyViz Podcast</title>
        <description>&lt;p&gt;I had the pleasure of appearing on Jon Schwabish&amp;rsquo;s &lt;a href=&quot;http://policyviz.com/episode-54-zan-armstrong/&quot;&gt;PolicyViz Podcast&lt;/a&gt;. It was a fun conversation about seasonality, map projections, scrollytelling, and more. &lt;/p&gt;
</description>
        <pubDate>Thu, 21 Jul 2016 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2016/07/21/PolicyViz/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2016/07/21/PolicyViz/</guid>
      </item>
    
      <item>
        <title>OpenVisConf!</title>
        <description>&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/everythingIsSeasonal.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;In late April I had the pleasure of presenting at OpenVisConf! They just posted the videos on &lt;a href=&quot;their%20website&quot;&gt;https://openvisconf.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My talk was &amp;ldquo;Everything is Seasonal&amp;rdquo;, about how seasonal patterns are a huge part of our lives and our data. Links to &lt;a href=&quot;http://slides.com/zanarmstrong/everything-is-seasonal#/&quot;&gt;slides&lt;/a&gt;, &lt;a href=&quot;https://www.youtube.com/watch?v=IiF4-g001EQ&quot;&gt;video&lt;/a&gt;, and &lt;a href=&quot;https://github.com/zanarmstrong/everything-is-seasonal&quot;&gt;resources and references&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Fri, 13 May 2016 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2016/05/13/OpenVisConf/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2016/05/13/OpenVisConf/</guid>
      </item>
    
      <item>
        <title>A Little Tool Goes a Long Way</title>
        <description>&lt;p&gt;Ian Johnson discovered that my &lt;a href=&quot;http://bl.ocks.org/zanarmstrong/05c1e95bf7aa16c4768e&quot;&gt;d3 number formatting helper tool&lt;/a&gt; is now &lt;em&gt;the&lt;/em&gt; Google &amp;ldquo;One Box&amp;rdquo; answer to searches for &amp;ldquo;d3 format number&amp;rdquo;. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/googlesearch.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;Pretty psyched that it&amp;rsquo;s gotten so popular and people have found it helpful, given that it was just a scrappy little tool I made to help myself test out number formatting syntaxes. A good reminder that small things can be super useful, and it&amp;rsquo;s worth sharing things even if unpolished.&lt;/p&gt;
</description>
        <pubDate>Thu, 10 Dec 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2015/12/10/A-Little-Tool-Goes-A-Long-Way/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2015/12/10/A-Little-Tool-Goes-A-Long-Way/</guid>
      </item>
    
      <item>
        <title>Which is bigger - Africa or North America?</title>
        <description>&lt;p&gt;A few days ago I read a friend&amp;rsquo;s story of why he decided to go help fight Ebola in Sierra Leone as a doctor with Partners in Health.&lt;/p&gt;

&lt;p&gt;In describing why he felt he had to go, &lt;a href=&quot;https://iansierraleone2015.wordpress.com/how-i-decided-to-go-to-sierra-leone/&quot;&gt;he wrote&lt;/a&gt; &amp;ldquo;I don’t recall the exact article that set me off, but something clicked that day, and I remember feeling upset and angry.  Politicians and media personalities were shouting that we should close the airports and quarantine returning health care workers in isolation tents.  Some of it was motivated by ignorance, some by fear, some by politics.  None of it was motivated or informed in any way by science.  &lt;strong&gt;My favorite example was the school in New Jersey that panicked and refused to admit two elementary school children from Rwanda.  Never mind that Rwanda is 2,600 miles from the epidemic area in West Africa.  That’s the distance from my apartment in DC to Lake Tahoe.&lt;/strong&gt; And believe me, given the average condition of roads in West Africa, it might as well be the distance to the moon.&amp;rdquo;&lt;/p&gt;

&lt;p&gt;There are a lot of things contributing to this. But, I wonder if our reliance on the mercator map projection plays a small role too. As Westerners I think we vastly underestimate the hugeness of Africa, and this affects how we think, react, and feel about the news we hear from Africa. &lt;/p&gt;

&lt;p&gt;This inspired me to want to compare the true sizes of different parts of the world. So, I created &lt;a href=&quot;http://bl.ocks.org/zanarmstrong/raw/caa2da1ea1558cdc3357/&quot;&gt;a little tool&lt;/a&gt; to explore for myself and to enable others to explore too. &lt;/p&gt;

&lt;p&gt;This isn&amp;rsquo;t going to change the world. But, maybe it will help us understand the world just a tiny, tiny bit better. &lt;/p&gt;
</description>
        <pubDate>Tue, 26 May 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2015/05/26/Which-is-bigger/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2015/05/26/Which-is-bigger/</guid>
      </item>
    
      <item>
        <title>Learning from the Past</title>
        <description>&lt;p&gt;I think there is a lot to learn from our past, especially in a subject like data visualization that feels like it&amp;rsquo;s moving so fast right now. So much of the more recent work is variations and adaptions of what has come before, that it&amp;rsquo;s useful to understand these earlier ideas in context. &lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m currently reading Tukey&amp;rsquo;s 1977 Exploratory Data Analysis. My Dad gave me a copy of this book when I first moved to California years ago, and had good foresight that I might find it interesting.  &lt;/p&gt;

&lt;p&gt;Early in the discussion of plotting, Tukey takes a few paragraphs to describe materials. He writes &amp;ldquo;If we want to see what our plots ought to tell us, there is no substitute for the use of tracing paper (or acetate). If we slip a well-printed sheet of graph paper just below the top sheet of a pad of tracing paper, we can plot on that top sheet of tracing paper almost as easily as if it were itself ruled.  Then when we have the points plotted, some boundary or reference lines drawn, and a few scale points ticked, we can take away the graph sheet and look at the points undisturbed by a grid.  We often gain noticeably in insight by doing this.  (And, we have had to pay for a sheet of tracing paper rather than for a sheet of graph paper).&amp;rdquo;&lt;/p&gt;

&lt;p&gt;Moreover, despite the challenge, expense, and manual work of plotting numbers by drawing them, Tukey continues later in the chapter that: &amp;ldquo;We almost always want to look at the numbers.  We do not always have graph paper at hand. &lt;strong&gt;There is no excuse for failing to plot and look.&lt;/strong&gt;&amp;rdquo; [emphasis in the original text].  &lt;/p&gt;

&lt;p&gt;It&amp;rsquo;s interesting to see the empahsis on the importance of graphing, to see the data visually in order to understand the data, even when graphing was so cumbersome.&lt;/p&gt;
</description>
        <pubDate>Sun, 17 May 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/reading/2015/05/17/Learning-from-the-Past/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/reading/2015/05/17/Learning-from-the-Past/</guid>
      </item>
    
      <item>
        <title>Zooming with D3</title>
        <description>&lt;p&gt;D3 has some built in zoom beahvior, but I haven&amp;rsquo;t used it yet. Today&amp;rsquo;s goal is to get to know zooming: what parameters are available, how they work, and any other tips and tricks. &lt;/p&gt;

&lt;p&gt;To start, there is &lt;a href=&quot;http://bl.ocks.org/mbostock/3680999&quot;&gt;geometric zooming&lt;/a&gt; and &lt;a href=&quot;http://bl.ocks.org/mbostock/3680957In&quot;&gt;semantic zooming&lt;/a&gt;. In geometric, the objects get larger as if you&amp;rsquo;re getting closer to them.  In semantic, they stay the same size but are just further apart when you zoom in. I&amp;rsquo;m solving for having too many points close together, so I&amp;rsquo;m going to go for semantic zooming.  &lt;/p&gt;

&lt;p&gt;In this example, you&amp;rsquo;re zooming in on both axis equally. I&amp;rsquo;m hoping to zoom on the x-axis only, since x-axis in my project is time and I want to see the data over smaller and smaller ranges of time. This article helped &lt;a href=&quot;http://computationallyendowed.com/blog/2013/01/21/bounded-panning-in-d3.html&quot;&gt;this article&lt;/a&gt;. In their example, they only use scaleExtent([1,1]) so they aren&amp;rsquo;t zooming but are just scrolling. I don&amp;rsquo;t need that behavior now, but it might be useful in the future. However, they were also operating only on the x-axis. To do this, they only define an x-scale and not a y-scale when they set up the zoom behavior: d3.behavior.zoom().y(y).scaleExtent([1, 1]).on(&amp;ldquo;zoom&amp;rdquo;, zoom) vs d3.behavior.zoom().x(x).y(y).scaleExtent([1, 1]).on(&amp;ldquo;zoom&amp;rdquo;, zoom). &lt;a href=&quot;http://bl.ocks.org/mbostock/4015254&quot;&gt;This Bostock example&lt;/a&gt; also shows both panning and horizontal zooming. &lt;/p&gt;

&lt;p&gt;Now I&amp;rsquo;ll give it a go!&lt;/p&gt;
</description>
        <pubDate>Thu, 19 Mar 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2015/03/19/Zooming-With-D3/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2015/03/19/Zooming-With-D3/</guid>
      </item>
    
      <item>
        <title>Exploring Voronoi</title>
        <description>&lt;p&gt;In prepping for the &amp;ldquo;Math to D3&amp;rdquo; talk at the D3 meetup, I created &lt;a href=&quot;http://bl.ocks.org/zanarmstrong/raw/b1c051113be144570881/&quot;&gt;an example for exploring the relationships between Voronoi diagrams, Delaunay triangulations, and circles&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/voronoi.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 13 Feb 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/projects/2015/02/13/Exploring-Voronoi/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/projects/2015/02/13/Exploring-Voronoi/</guid>
      </item>
    
      <item>
        <title>Delaunay Triangulation &amp; Comparing Distances</title>
        <description>&lt;p&gt;During last night&amp;rsquo;s D3 presentation, I shared my &lt;a href=&quot;http://bl.ocks.org/zanarmstrong/raw/b1c051113be144570881/&quot;&gt;Exploring Voronoi polygons and Delaunay Triangulations&lt;/a&gt; example and discussed some of the geometry that relates the polygons, triangles, and circumscribed circles. &lt;/p&gt;

&lt;p&gt;At one point I showed the 4 point example, discussing how the algorithm determines whether to connect points A and C or B and D. The key is that the circumscribed circles of the resulting triangles can&amp;rsquo;t contain any of the 4 points. So, the left example is correct below and the right example is incorrect since B is inside the circle defined by triangle ACD. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/delauney0.png&quot; alt=&quot;&quot;&gt; &lt;/p&gt;

&lt;p&gt;I asked the audience what they thought might define it, and somebody suggested it was the length of the connecting lines. I explained that it wasn&amp;rsquo;t, but then when I showed the example&amp;hellip; it sort of looked like it was. The example from during the talk looked like this: &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/delauneyEdgeCase.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;In the moment, I knew something was wrong, but couldn&amp;rsquo;t see the problem. I knew I needed to look into it more. So, I did that this morning :)&lt;/p&gt;

&lt;p&gt;It turns out that the difference is which lengths we&amp;rsquo;re talking about. It&amp;rsquo;s not the length of the connecting line that matters. It&amp;rsquo;s the difference between the radius of the circumscribed circle. &lt;/p&gt;

&lt;p&gt;Unfortunately when I had placed the dots during the presentation, I had accidently chosen a rare case: when the radius of the two circles was nearly equal then both the lines connecting opposite points were also both nearly equal and essentially diameters of the circle.  As I brought point C closer to the center, the centerline switched from A-C to B-D when the circles were the same length. Therefore, it was easy to conflate the length of the lines and the diameter of the circles.&lt;/p&gt;

&lt;p&gt;Looking at it again this morning, I was able to easily find an example in which the radius of the circle defined by connecting A and C was smaller than the radius of the circle defined by connecting B and D AND where the length between A and C was still longer than B and D.  It becomes clear that the radius of the circle is the crucial factor and not the comparison of line lengths.&lt;/p&gt;

&lt;p&gt;These screenshots help explain it: &lt;/p&gt;

&lt;p&gt;At the start, it&amp;rsquo;s clear that we need to connect B and D as shown. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/delauney1.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;As I bring in point A, the circles become more similar in size. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/delauney2.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;Finally, when A is too close, the triangles flip to connect A-C instead of B-D. If this hadn&amp;rsquo;t happened, A would have falled inside the circle for BCD when the radius of BCD. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.zanarmstrong.com/images/delauney3.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;So, the triangulation is defined by the relative sizes of the circles. I believe this can also be described by the angles of the triangle, but I haven&amp;rsquo;t thought through the details. Guess I&amp;rsquo;ll be doing that next :)&lt;/p&gt;
</description>
        <pubDate>Thu, 12 Feb 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/explanations/2015/02/12/Revisiting-Delaunay-Triangulations/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/explanations/2015/02/12/Revisiting-Delaunay-Triangulations/</guid>
      </item>
    
      <item>
        <title>Math to D3</title>
        <description>&lt;p&gt;Last night I presented a talk entitledd &amp;ldquo;Math to D3&amp;rdquo; at the Bay Area&amp;rsquo;s D3 meetup in Oakland. It started with my story of my own journey from analyst to D3 developer, and advice based on what I learned along the way. Then I focussed on how to get from a sketch, to equations, to D3 code for 5 different examples. My main goal was to share the magic of drawing with data via D3, and share how to translate data into visual attributes using equations.  I wanted to empower people to feel that they could create their own custom works - to go beyond adapting existing examples.  &lt;/p&gt;

&lt;p&gt;Many introductions to D3 focus on the enter/exit/update framework including the functions selectAll, data, append, etc. I decided to compliment this by focusing on writing the equations (functions) used to actually transform the data into values to define the visual attributes of the SVG elements.  The focus was be on the very central part of defining attributes, rather than on the rest of the design (legend, axis, etc).&lt;/p&gt;

&lt;p&gt;The audience had a wide range of experience with D3, from people who had never used it before to people who &amp;ldquo;dream in D3.&amp;rdquo; &lt;/p&gt;

&lt;p&gt;The video is on YouTube &lt;a href=&quot;https://www.youtube.com/watch?v=1PHVN6gW82o&quot;&gt;here&lt;/a&gt; and the deck is &lt;a href=&quot;https://docs.google.com/presentation/d/1QuzE_v1B9-f8WigM_1avncJFR6PmUBWYAGzZWN2s45Q/edit?usp=sharing&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Note that there was one thing that came up regarding Voronoi polygons and Delaunay triangulation where I wasn&amp;rsquo;t sure of the answer. I sorted it out, and will describe it in the next post :).  &lt;/p&gt;
</description>
        <pubDate>Wed, 11 Feb 2015 00:00:00 +0000</pubDate>
        <link>http://blog.zanarmstrong.com/presentations/2015/02/11/Math-and-D3/</link>
        <guid isPermaLink="true">http://blog.zanarmstrong.com/presentations/2015/02/11/Math-and-D3/</guid>
      </item>
    
  </channel>
</rss>
