

{"id":5605,"date":"2018-11-26T12:52:48","date_gmt":"2018-11-26T16:52:48","guid":{"rendered":"https:\/\/sites.temple.edu\/tudsc\/?p=5605"},"modified":"2020-04-22T15:07:08","modified_gmt":"2020-04-22T19:07:08","slug":"simple-methods-for-advanced-maps-in-qgis","status":"publish","type":"post","link":"https:\/\/sites.temple.edu\/tudsc\/2018\/11\/26\/simple-methods-for-advanced-maps-in-qgis\/","title":{"rendered":"Simple Methods for Advanced Maps in QGIS"},"content":{"rendered":"<p>By Gary Scales<\/p>\n<p><!--more--><\/p>\n<p>In this blog post I demonstrate a quick and simple method of generating a \u2018normalized bivariate choropleth\u2019 map.\u00a0 While cartographers wisely caution against simple and inflexible techniques (and I echo their sentiments in many ways), I also argue that these approaches can dismantle the obstacles which can prevent some people from engaging with digital tools. While any project produced too quickly will always be of lower quality than a thoroughly considered and edited piece of work, fast production can help in a number of ways; it can show significant trends quickly, highlight potential unforeseen issues, and most importantly, impart new skills and fascinations.\u00a0 As a form of both experimentation and access to advanced digital tools, basic and simple processes have an important role in the digital humanities.<\/p>\n<h3>Demystifying Terminology<\/h3>\n<p>Rendering a \u2018normalized bivariate choropleth\u2019 map might sound intimidating and demanding of developed knowledge and skills, but it doesn\u2019t have to be complex.\u00a0 This simple step-by-step guide not only shows how to make the map, but hopefully assuages any fears that more advanced analytical mapping is beyond the reach of GIS beginners.<\/p>\n<p>Understanding the terminology is important, and fortunately not difficult.\u00a0 First, a choropleth map is simply a map which shows quantities in certain spaces; for example population by state.\u00a0 A bivariate map shows two variables (as opposed to a univariate map which shows one).\u00a0 Thus a bivariate choropleth map shows two variables in one set of defined spaces.\u00a0 \u2018Normalized\u2019 means that bias has been addressed; in this example percentages are used instead of numbers to account for differences in population density.<\/p>\n<p>Two datasets (one per variable) are required for the map and both need to include one common spatial category (countries, states, counties, etc.).\u00a0 For this example, Local Authority Districts in the United Kingdom were chosen as the unit of space, and the two variables were:<\/p>\n<ul>\n<li>The percentage of voters who voted \u2018remain\u2019 in the June 2016 Brexit referendum<\/li>\n<li>The number of houses purchased under the \u2018Right to Buy\u2019scheme between April &amp; June of 2017<\/li>\n<\/ul>\n<p>The final map will be made from two separate maps.\u00a0 The first will show the percentage of voters who voted remain, while the second will show the number houses purchased under the \u2018Right to Buy\u2019scheme.\u00a0 The example uses <a href=\"https:\/\/www.qgis.org\/en\/site\/\">QGIS<\/a>, but the principles will be the same for ArcGIS and most other GIS.<\/p>\n<h3>Importing Data<\/h3>\n<p>To start, a <em>Vector Layer<\/em> is added showing the Local Authority Districts:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5606\" src=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer-300x80.png\" alt=\"\" width=\"600\" height=\"160\" srcset=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer-300x80.png 300w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer-768x204.png 768w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer-1024x272.png 1024w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer-850x226.png 850w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Add_Layer.png 1708w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The dataset can be added next.\u00a0 The step is the same as before only with a\u00a0<em>Delimited Text Layer.\u00a0\u00a0<\/em>The layers can then be joined together.\u00a0 This is done using the <em>Joins<\/em> option under the <em>Layer Properties<\/em> menu.\u00a0 It is important the fields used to make the join contain identical information. In this example the titles of the matching data is different in each dataset \u2013 \u201cArea_Code\u201d and \u201clad17cd\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5609\" src=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers-212x300.png\" alt=\"\" width=\"212\" height=\"300\" srcset=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers-212x300.png 212w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers-768x1084.png 768w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers-725x1024.png 725w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers-300x424.png 300w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Joining_Layers.png 789w\" sizes=\"auto, (max-width: 212px) 100vw, 212px\" \/><\/p>\n<h3>Creating Styles<\/h3>\n<p>Under the <em>Symbology<\/em> option in the <em>Layer Properties<\/em> menu the type can now be set as <em>Graduated<\/em>, and the data to be shown selected as \u201cEU-referendum-result-data_Pct_Remain.\u201d\u00a0 A bright and clear color should be selected \u2013 in this case red \u2013 and the number of classes can be set to three.<sup><a href=\"#_ftn1\" name=\"_ftnref1\">1<\/a><\/sup> In this case the best algorithm to use for rendering is <em>Quantile<\/em>.<sup><a href=\"#_ftn2\" name=\"_ftnref2\">2<\/a><\/sup>\u00a0 This completes the first choropleth map.<\/p>\n<p>The second map is completed by repeating the above steps but using the housing sales data instead of the voting data.\u00a0 When complete there will be four layers: Local Authority Districts (for voting data); Voting Data; Local Authority Districts (for housing data); and Housing data.\u00a0\u00a0Turning off the <em>Visibility<\/em> of the layers from the first map (below left) leaves the second map (below right) showing house purchase data by Local Authority District:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5618\" src=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Map_one_and_two_complete-300x253.png\" alt=\"\" width=\"600\" height=\"506\" srcset=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Map_one_and_two_complete-300x253.png 300w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Map_one_and_two_complete-768x648.png 768w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Map_one_and_two_complete-1024x864.png 1024w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/Map_one_and_two_complete-850x717.png 850w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>Final Adjustments<\/h3>\n<p>All that is required at this stage is to overlay map two onto map one.\u00a0 All the layers must be turned on, and by clicking on the color bar in the <em>Symbology<\/em> option under the <em>Layer Properties<\/em> menu, the <em>Opacity<\/em> of the layer can be changed.\u00a0 Some experimentation with the percentage value will be required depending on preferences, however 55% works for this map.<\/p>\n<p>Zooming into the map more closely reveals the areas where the colors of the two variables are most clearly blended \u2013 the gray\/mauve districts are those with a high number of \u2018Right to Buy\u2019 purchases, and a high percentage of remain votes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5615\" src=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/complete_zoom_B-300x186.png\" alt=\"\" width=\"597\" height=\"371\" srcset=\"https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/complete_zoom_B-300x186.png 300w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/complete_zoom_B-768x477.png 768w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/complete_zoom_B-1024x636.png 1024w, https:\/\/sites.temple.edu\/tudsc\/files\/2018\/11\/complete_zoom_B-850x528.png 850w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/p>\n<p>This is a quick and accessible method which shows that analytical mapping is not always a complicated operation.\u00a0 Nonetheless, this technique is not the most refined or flexible, and more advanced ways to render a map with improved accuracy, colors, and visual contrast should be used for larger projects, especially those purposely developed for display.<sup><a href=\"#_ftn1\" name=\"_ftnref3\">3<\/a><\/sup>\u00a0Nonetheless, the convenience of such an approach is that reasonably advanced maps can be produced easily and can help identify key data trends quickly if needed.<\/p>\n<hr \/>\n<p><a href=\"#_ftnref1\" name=\"_ftn1\">1.<\/a> As a general rule, maps should have as few data classes as possible as this makes them easier to read.<\/p>\n<p><a href=\"#_ftnref2\" name=\"_ftn2\">2.<\/a> For more on how to properly select algorithms for rendering social data, see John Nelson \u201cTelling the Truth\u201d, Last Modified: October 12, 2011, Available: &lt;<a href=\"http:\/\/uxblog.idvsolutions.com\/2011\/10\/telling-truth.html\">http:\/\/uxblog.idvsolutions.com\/2011\/10\/telling-truth.html<\/a>&gt;, [Accessed: October 31, 2018]<\/p>\n<p><a href=\"#_ftnref3\" name=\"_ftn1\">3.<\/a> For more on these methods see Robert E. Roth, Andrew W. Woodruff, and Zachary F. Johnson, \u201cValue-by-alpha Maps: An Alternative Technique to the Cartogram,\u201d <em>The Cartographic Journal<\/em>, Vol. 42, No.2 (May 2010): 130\u2013140.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Gary Scales<\/p>\n","protected":false},"author":15456,"featured_media":5615,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[286,299,2,292],"tags":[92,85,6,368],"class_list":["post-5605","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cultural-studies","category-geography","category-grad-students","category-history","tag-mapping","tag-qgis","tag-top-news","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/posts\/5605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/users\/15456"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/comments?post=5605"}],"version-history":[{"count":0,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/posts\/5605\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/media\/5615"}],"wp:attachment":[{"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/media?parent=5605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/categories?post=5605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.temple.edu\/tudsc\/wp-json\/wp\/v2\/tags?post=5605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}