{"id":368,"date":"2015-06-04T15:00:09","date_gmt":"2015-06-04T15:00:09","guid":{"rendered":"http:\/\/transnationalhistory.net\/mapping\/?page_id=368"},"modified":"2023-08-29T15:13:38","modified_gmt":"2023-08-29T15:13:38","slug":"datavis-circles","status":"publish","type":"page","link":"https:\/\/transnationalhistory.net\/mapping\/tutorials\/datavis-circles\/","title":{"rendered":"Visualising Data on your Map: the case of population circles"},"content":{"rendered":"<p style=\"text-align: right;\"><em><strong>Tutorial\u00a07<\/strong><\/em><\/p>\n<p>Sometimes maps do not only show physical points, boundaries, and flows: graphs and statistics are added, and some elements\u00a0may be\u00a0added in order to emphasise a particular point. This tutorial will show you how to display\u00a0population circles within a physical map &#8211; a classic from your geography classes at school!<\/p>\n<p>We will use the case of the\u00a0<em>Adresaro\u00a0<\/em>(Esperanto speakers) in Europe in 1905. Special thanks go to Josh Sherrington whose undergraduate research essay inspired this tutorial.<\/p>\n<p><strong>STEP 1: INSERTING THE DATA TO THE MAP VIA A CSV LIST<\/strong><\/p>\n<p>The data was collected in Peter G. Foster&#8217;s\u00a0<em>The Esperanto Movement\u00a0<\/em>(The Hague, Walter de Gruyter, 1982). It was put into a CSV list (<a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/pointvectorlayers\/\">tutorial 2 explains how to do so<\/a>): the list is composed of the country name, the number of Esperanto speakers, and the coordinates where the population circles should be centred.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-csv-esperanto.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-369 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-csv-esperanto-e1433417364209.jpg\" alt=\"7 csv esperanto\" width=\"301\" height=\"371\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-csv-esperanto-e1433417364209.jpg 301w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-csv-esperanto-e1433417364209-243x300.jpg 243w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Once inserted into the map, the data seems standardised: there are no labels nor varying size.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-dots.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-370\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-dots.jpg\" alt=\"7 esperanto-dots\" width=\"630\" height=\"448\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-dots.jpg 630w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-dots-300x213.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p><strong>STEP 2: MAKING CIRCLE SIZES VARY DEPENDING ON POPULATION<\/strong><\/p>\n<p>We want the biggest Adresaro settlements to display the widest population circles. To do so, open the Style properties of your data layer (<strong>Right click<\/strong> &gt; <b>Properties<\/b> &gt;\u00a0<strong>Style<\/strong>). In the bottom-right corner of the window, click on <strong>Advanced<\/strong>.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-edit-esperanto-speakers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-371 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-edit-esperanto-speakers-e1433417961691.jpg\" alt=\"7 edit esperanto speakers\" width=\"700\" height=\"511\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>In\u00a0the Advanced option, select the\u00a0<strong>Size scale field<\/strong> tool. Select according to which field the size of your circles will vary (in our case, <strong>Number<\/strong>).<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-size-scale-field.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-372\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-size-scale-field.jpg\" alt=\"7 size scale field\" width=\"255\" height=\"188\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>After clicking <strong>OK<\/strong>, the result should look like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-circles.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-373\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-circles.jpg\" alt=\"7 esperanto-circles\" width=\"682\" height=\"473\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-circles.jpg 682w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-esperanto-circles-300x208.jpg 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n<p>This is starting to look interesting! However, some of the circles seem so big that they overlap with others. To avoid this, we need to lower the original size of our dots. Go back to <strong>Properties<\/strong> &gt; <strong>Style<\/strong>, and play with the original size of your dots (under\u00a0<strong>Size<\/strong>). You may also change the colour of your circles.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-coloursize.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-374\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-coloursize.jpg\" alt=\"7 coloursize\" width=\"526\" height=\"87\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-coloursize.jpg 526w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-coloursize-300x50.jpg 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p>I have lowered the original size to 1.00 and chosen a green colour.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-green-circles.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-375\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-green-circles.jpg\" alt=\"\" width=\"768\" height=\"516\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-green-circles.jpg 768w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-green-circles-300x202.jpg 300w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-green-circles-387x260.jpg 387w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/p>\n<p><strong>STEP 3: ADDING A LABEL WITH BOTH NAME AND DATA<\/strong><\/p>\n<p>One final element is missing: labels. <a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/pointvectorlayers\/\">We have already learnt how to insert labels onto a map<\/a>. However, since quantitative data is key in this map, it would be nice to display both the name of the country and its number of\u00a0<em>Adresaro<\/em>. Open <strong>Properties<\/strong> &gt;\u00a0<strong>Labels<\/strong>. Instead of selecting which field should be labelled onto the map, click on the icon on the right.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-labelesperanto.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-376\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-labelesperanto.jpg\" alt=\"7 labelesperanto\" width=\"447\" height=\"34\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-labelesperanto.jpg 447w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-labelesperanto-300x23.jpg 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/a><\/p>\n<p>This will open a query box that is similar to the one we saw in our previous tutorial. Here we want the name to be displayed first, then the number of Esperanto speakers just underneath. To add more than one value, we are using the formula <strong>||<\/strong>. To allow multi-line labels, we use the formula <strong>&#8216;\\n&#8217;<\/strong>. Your full formula should therefore look like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-labelesperanto.jpg\"><br \/>\n<\/a> <a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-multiline-labels.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-377\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-multiline-labels.jpg\" alt=\"7 multiline labels\" width=\"311\" height=\"121\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-multiline-labels.jpg 311w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-multiline-labels-300x117.jpg 300w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/a><br \/>\nAfter also changing some of the Style settings of the layer (font, size, colour, buffer, position), the final result should look like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-final-result-esperanto.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-378\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-final-result-esperanto.jpg\" alt=\"7 final result esperanto\" width=\"743\" height=\"438\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-final-result-esperanto.jpg 743w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/06\/7-final-result-esperanto-300x177.jpg 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>Last update: 4 June 2015 on QGIS 2.8.1 Wien.<\/p>\n<p style=\"text-align: right;\"><a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/depicting-routes\/\">Next tutorial:<\/a><br \/>\n<a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/depicting-routes\/\"> <strong>Depicting Routes &amp; Itineraries<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial\u00a07 Sometimes maps do not only show physical points, boundaries, and flows: graphs and statistics are added, and some elements\u00a0may be\u00a0added in order to emphasise a particular point. This tutorial will show you how to display\u00a0population circles within a physical map &#8211; a classic from your geography classes at school! We will use the case [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":8,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-368","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":1,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/368\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/368\/revisions\/379"}],"up":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/8"}],"wp:attachment":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/media?parent=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}