{"id":1938,"date":"2015-06-20T18:10:33","date_gmt":"2015-06-20T18:10:33","guid":{"rendered":"http:\/\/www.ralphstraumann.ch\/blog\/?p=1938"},"modified":"2015-06-23T20:19:57","modified_gmt":"2015-06-23T20:19:57","slug":"visualizing-group-sizes-and-inter-group-flows","status":"publish","type":"post","link":"https:\/\/www.ralphstraumann.ch\/blog\/2015\/06\/visualizing-group-sizes-and-inter-group-flows\/","title":{"rendered":"Visualizing group sizes and inter-group flows"},"content":{"rendered":"<p>A few weeks ago, I came across the following graphics\u00a0on Twitter:<\/p>\n<figure id=\"attachment_1939\" aria-describedby=\"caption-attachment-1939\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/twitter.com\/mhermann_\/status\/588992627925737472\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1939\" src=\"http:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-circle-diagram.png\" alt=\"\" width=\"500\" height=\"185\" srcset=\"https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-circle-diagram.png 600w, https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-circle-diagram-300x111.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-1939\" class=\"wp-caption-text\"><a href=\"https:\/\/twitter.com\/mhermann_\/status\/588992627925737472\">source<\/a><\/figcaption><\/figure>\n<figure id=\"attachment_1940\" aria-describedby=\"caption-attachment-1940\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/twitter.com\/mhermann_\/status\/588936784014417920\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1940\" src=\"http:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-chord-diagram.jpg\" alt=\"\" width=\"500\" height=\"579\" srcset=\"https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-chord-diagram.jpg 600w, https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/sotomo-chord-diagram-259x300.jpg 259w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-1940\" class=\"wp-caption-text\"><a href=\"https:\/\/twitter.com\/mhermann_\/status\/588936784014417920\">source<\/a><\/figcaption><\/figure>\n<p>They depict voter share per party (including absentees, in grey) (top) and voter flows between different parties in\u00a0the 2015 cantonal elections in Zurich. The graphics are\u00a0produced by <a href=\"http:\/\/sotomo.ch\/\">sotomo<\/a>, a research company at the nexus of science and practical application occupying itself with political and economic topics. I&#8217;m not sure if only the lower graphic or both have been produced jointly with the Swiss daily <a href=\"http:\/\/www.tagesanzeiger.ch\">Tagesanzeiger<\/a>, but I think only the lower graphic has been published in the newspaper.<\/p>\n<h4>Circles<\/h4>\n<p>These graphics pose interesting problems\u00a0and both are connected to the circles:<\/p>\n<p>The top graphic uses circles to represent voter shares. It&#8217;s of course hard to assess the relative sizes of the circles (the usual problem with such depictions). But this is clearly also not the point sotomo aims to make (there are no scales or quantitative labels of any kind). Instead, the point they want to drive home is \u2013 I think \u2013\u00a0that there is a very large share of people who didn&#8217;t vote in the elections \u2013 and that aspect of the graphic works.<\/p>\n<p>(In parantheses: Even if this might shock you, it&#8217;s not very uncommon in Switzerland. Many\u00a0pundits take it as a sign not\u00a0of political apathy but rather of people generally being okay with how things are run around here.)<\/p>\n<h4>Aside: Scaling and judgement<\/h4>\n<p>In the 1950s, various scholars\u00a0studied biases in perception, one of them being James Flannery. Based on earlier research on how\u00a0people often judge relative sizes of circles wrongly, he introduced a so-called &#8220;appearance compensation&#8221; for circular diagrams. This algorithm would adjust relative sizes of circles in a manner that, on average, would compensate for the biased perception. However, nowadays most people argue that <a href=\"http:\/\/makingmaps.net\/2007\/08\/28\/perceptual-scaling-of-map-symbols\/\">these methods should not be used anymore, but instead other means that support accurate perception of circular diagrams<\/a>.<\/p>\n<h4>Flows and circles<\/h4>\n<p>Other than the first graphic that I kind of like in its simplicity and to-the-point message, I find the second graphic\u00a0not ideal. The problem is in the legend and how it instructs us to use\u00a0the graphic. Both circle size and width of the flow vectors encode the same property: number of voters supporting a party and number of voters who\u00a0changed their endorsement of a party. Showing these properties is a nice idea, in my opinion. But how the authors chose to depict them damages the message as it is not possible to appreciate both the flows and the party support bases simultaneously and in relation to each other. Even given the legend\u00a0with\u00a0the circle representing 30,000 and the\u00a0arrow representing 1,000 the comparison does not compute.<\/p>\n<p>That&#8217;s a shame. I think the reason the authors chose this kind of diagram might have\u00a0to do with the fact that this and similar\u00a0diagrams have become very popular over the last few years. Also, they are relatively easily made for example with <a href=\"http:\/\/gephi.github.io\/\">Gephi<\/a> or\u00a0<a href=\"http:\/\/d3js.org\/\">D3<\/a>.<\/p>\n<p>However, there are clearly better alternatives, in my opinion. For example, the widely used <a href=\"https:\/\/www.google.ch\/search?q=d3+chord+diagram&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ei=eaeFVbnjHsbkUYP5gZgG&amp;ved=0CAcQ_AUoAQ&amp;biw=1395&amp;bih=696\">D3 chord diagrams<\/a>\u00a0are capable to make the group sizes and the inter-group flows comparable (or, speaking within the above example, the party support and voter flows). An even nicer approach has been used in the UK General Election by <a href=\"http:\/\/www.theguardian.com\/uk\">The Guardian<\/a>*. It avoids difficulties that are commonly associated with round graphics by basically unravelling a chord diagram onto a straight axis thereby creating a simple <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sankey_diagram\">Sankey diagram<\/a>.<\/p>\n<p>The Guardian&#8217;s approach can show group size (party support in 2010,\u00a0top, and 2015\/projected, bottom) as well as the size of flows between the groups (voter flows,\u00a0from top to bottom) clearly and simultaneously:<\/p>\n<figure id=\"attachment_1941\" aria-describedby=\"caption-attachment-1941\" style=\"width: 720px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.theguardian.com\/politics\/ng-interactive\/2015\/feb\/27\/guardian-poll-projection\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-1941\" src=\"http:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/guardian-uk-election-projections-1024x284.png\" alt=\"source\" width=\"720\" height=\"200\" srcset=\"https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/guardian-uk-election-projections-1024x284.png 1024w, https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/guardian-uk-election-projections-300x83.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><figcaption id=\"caption-attachment-1941\" class=\"wp-caption-text\"><a href=\"http:\/\/www.theguardian.com\/politics\/ng-interactive\/2015\/feb\/27\/guardian-poll-projection\">source<\/a><\/figcaption><\/figure>\n<p>The graphic&#8217;s complexity is alleviated\u00a0by the built-in interaction which always highlights only one party (either in 2010 or in 2015) and associated flows. Additionally, the Guardian team have disassembled the wins and losses of the individual parties into distinct static graphics,\u00a0beneath this comprehensive one (not shown above).<\/p>\n<p>In what clever ways do you visualise group size and flow size, simultaneously or not?<\/p>\n<p>&nbsp;<\/p>\n<p>*: In the interest of full disclosure: I have assisted The Guardian with the <a href=\"http:\/\/www.theguardian.com\/politics\/ng-interactive\/2015\/may\/07\/live-uk-election-results-in-full\">UK General Election 2015 cartogram<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few weeks ago, I came across the following graphics\u00a0on Twitter: They depict voter share per party (including absentees, in grey) (top) and voter flows between different parties in\u00a0the 2015 cantonal elections in Zurich. The graphics are\u00a0produced by sotomo, a research company at the nexus of science and practical application occupying itself with political and &hellip; <a href=\"https:\/\/www.ralphstraumann.ch\/blog\/2015\/06\/visualizing-group-sizes-and-inter-group-flows\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visualizing group sizes and inter-group flows<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1941,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,9],"tags":[184,185,87,183,122,125],"class_list":["post-1938","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-note","category-review","tag-chord-diagram","tag-circle-chart","tag-politics","tag-sankey-diagram","tag-usability","tag-visualization"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ralphstraumann.ch\/blog\/wp-content\/uploads\/2015\/06\/guardian-uk-election-projections.png","jetpack_shortlink":"https:\/\/wp.me\/p3pPwF-vg","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/posts\/1938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/comments?post=1938"}],"version-history":[{"count":10,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/posts\/1938\/revisions"}],"predecessor-version":[{"id":1963,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/posts\/1938\/revisions\/1963"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/media\/1941"}],"wp:attachment":[{"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/media?parent=1938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/categories?post=1938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ralphstraumann.ch\/blog\/wp-json\/wp\/v2\/tags?post=1938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}