Creating Heatmap in QGIS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey folks in this lecture we're gonna look into the distribution of asian populations in the united states so we got this data set in um comma separated values csv format and you can see all these 50 straight states in united states and um excluding the district of columbia and we're looking into the asian populations the total populations of united states is 300 and million so out of that he got roughly around 21 millions who are asian so when you're talking about agency talk about south asians we're talking about bangladeshi indian and pakistanis we're talking about southeast asians like vietnamese and chinese and also we're talking about japanese so the population is not necessarily evenly distributed across all the states so just by looking into this figure you can't really know where the population is highest unless you do the sorting in terms of ascending or descending but it still doesn't make sense in terms of the distribution so we got this longitude and latitude data in here that we're going to plug it up in our qgis to actually map create a graduated map and also heat map for understanding the population distribution uh asian population distribution across the states so let's just um jump right in um we're gonna go into qgis and here i got qgis 3.4 any versions will be fine the methods i'm going to show you to create graduated map and to bring the csv format into embedding uh in your gis united states map followed by creating a heat map are all by and by would be pretty similar regardless of which versions of qgis you're going to be utilizing i am utilizing 3.4 because i'm used to it because these are graphical user interface based software often um it has slight modifications in terms of the utilities that you may be utilizing so let's just go right ahead and look into add layer and add vector layer and we're going to look into adding the united states map which i have somewhere in here which is a vector polygon shape file and we're going to look into the gis data vector data and united states so the map format is esri chevrolet and click open click add and the map will be added right in here obviously you can press ctrl and scroll up your mice to make it bigger because we're gonna look into the use population mostly in the united states mainland as opposed to alaska and hawaii or samoa island which is just around here and puerto rico we're just going to zoom in the main mainland usa okay so from right here the first thing we're going to do is we're gonna um incorporate the csv format of u.s population data we got there okay so we go to layer again and this time we're gonna go to add delimited text layer and from here we're gonna find that csv file that i showed you which is in here click open and the critically most important thing in here is make sure your eps is in four three two six because the last longitude and latitude data we got there is in four three two six coordinate reference systems okay and in gis in qgis or any other gis based utilities longitude always comes first and then the latitude and longitude is actually x-axis and latitude is your y-axis so x field we're going to say longitude and y field we're going to say latitude which i have labeled in that csv file as you can see from here for the clarity and from here we're gonna look into make sure that the first record has been checked up because it's actually your levels you know the field headers and you're all good to go and click add and as you can see use population distributions asian population distributions in united states but obviously they all are even in terms of the diet so there is no way you can actually tell where the population is actually higher where the population is medium or the population is lower that's why you're going to create a graduated map that actually provide the information that we need to convey through this united states map so from here we're going to right click that csv file that we have embedded in our us polygon share file and click properties and from properties we're going to go right in and you can see in the top is a single symbol we're going to change that to graduated map okay and once we choose that the column is our asian total okay and the symbol we're going to change that as well and we're gonna change the color of the symbol let's say let's say red okay and also we're gonna increase the size of that symbol to let's say four okay and click okay and from here the color ramp you can you have a lot of options to change the color ramp in our cases we're just gonna keep it the way it is okay it's red and the most important thing in here is your mode and we are distributing the populations from zero to whatever population they got there in that list so we're gonna do the natural breaks people who have done a little bit of statistics will know how to create a histogram in terms of grouping the data set and that's what we have done or what that's what gis gis algorithm will do it for you and you keep the classes five and click apply and now you can see what it has done is basically um is now showing you the distributions of u.s asian populations based on the numbers even though it is pretty readable and it is pretty good in terms of providing information from lowest population size to highest which is the solid big red in here it doesn't necessarily convey more presentational approaches in terms of figuring out the population size so for that we're going to create we're going to go back to properties again and this time the couple of things we're going to do the precisions to clean the data because there's a lot of numbers and looks a little um chaotic so we're going to change that to -1 and looks a lot more cleaner okay so click apply you can see it looks a lot more clear it doesn't change the data but it just cleaned the data so now we know roughly around 9 000 to 19 000 populations of these states okay so it's a lot of states that has no asian popular very very limited low asian populations but still what i wanted to show you is basically we can actually convey that messages by the size of these um the circle dot and for that we change the method from color to size and now uh what we can also do we can change the color um oh let's just do that first okay so that that looks pretty cool so now what it is doing especially in terms of the same size of the circle you change the circle based on the population size so the bigger the size of the circle we know the asian population is more higher as you can really now conveyingly say that california has the highest number of asian population followed by maybe this or new york and obviously you got texas maybe some populations also uh in hawaii which is not surprising because um a good number of japanese peoples actually immigrated to hawaii back in old days and as you can see alaska the largest states in in in america has a very low asian population so that's why we're going to just focus on the state mapping here and that's actually pretty cool in terms of the graduated map based on the size of the population and also based on the size of the uh dot which represent in the asian population's size so what we also want to do we're going to create we're going to duplicate this cs csb file so duplicate layer and this time we gonna we're going to change to heat map which is also critically important if you convey messages more clearly that will create a heat in terms of the heat pattern that will actually reflect whether the population is higher in some states or when the population is lower so instead of graduated map at the top we're gonna change to heat map in here and from there we color ramp let's say we're gonna change that to magma and obviously the radius we're gonna change that to let's say 20. and weight points is going to be asian turtle population okay and click apply and immediately realize the whole map in the background is gone okay and as you can see the heat is actually pretty cool showing where the heat is highest as you can see again the california has the highest but the map is gone so we're gonna bring the map back by going to the layer rendering in here and you can see the opacity we're gonna change that from 100 to 50 and click apply and your map will be back and now it makes lot more sense both the graduated bubble map as you can as you can call it and also the heat map is overlaid in the united states to reflect the asian population size across all the states all the 50 states excluding district of columbia because i don't have the data of washington dc populations of asian asian population in washington dc so that looks pretty good so click ok and now the last thing we want to do we're going to drag that heat map on top of our graduated map so that it looks more presentable okay actually it looks a lot more presentable when you don't drag it we'll put it back in there then right okay so this is a quick demonstrations of how to create a heat map how to create a graduated map and the data set is actually taken from united states census sensor service and census barrier and you can get all the details of asian populations and all hispanic population per se or black communities and and white peoples so it basically showing the asian population in this map and clearly from that map we can see that the highest population size is actually in california you can actually level the stage to clear it up so we're going to go back to that main file in states and right click it properties and go right into your labels in here and at the moment it's a no label choose single level and label it let's say we don't want to choose the name because some of the state's name is quite big and will look bit odd so we're going to choose the state so just a symbol let me just find out which one it is it could be it could be this one don't know so maybe it doesn't particularly have same nope here right okay so we got this stats speak you know whatever you know that's what one of the data we have in our vector polygon map i can show you where it is actually so if you go um if you go right in here in your attribute click that attribute and you can see uh that's your share file came with all this data gis is data database you know it's not just map or cartographic software so that stuff sdu sps basically signifying the uh the state's um acronym okay so from here you can see better now that california has the largest population of asians followed by new york and texas because that's where the heats are okay and a lot most of most of the other cities don't have any asians population are very small let's say in idaho or montana or wyoming has very small asian populations colorado has some populations so do washington in the west as you can see illinois where chicago is you have some populations ohio texas is a large population especially in dallas and obviously florida has some good population act interestingly you have new years you got a you know it's a small state comparing to other states but it still has a large population thing that most important here is basically the proportional size of the state in relation to the proportional distribution of white communities in in conjunction with the asian community so if you take in all that and do the weighted estimation which i have not shown you here because that's beyond the lecture then you realize that actually certain areas of united states has actually out-competed the white communities in terms of asians for example kansas as large asian communities but although in the map it shows a small dot but considering the size of the state and considering the white communities in there is actually out competed both in terms of the population distribution also in terms of the white communities so those are the things that has not been taken into account and but it's actually give you a very crude generic idea how to create a great map graduated a graduated map and heat map and also showing you the distribution patterns of asian asian population in the united states i hope you find this lecture useful if you have any questions or comments feel free to ask and i will
Info
Channel: Bushmaster
Views: 203
Rating: undefined out of 5
Keywords: QGIS, US Asian Population, Asian Population, USA, States, California, GIS, Heatmap, QGIS Heatmap, Heat Map, Population Map, Distribution Pattern, Spatial Distribution, Graduated Map, GIS Based Study, Mohammed Ashraf, Ashraf
Id: gEAisFT4grs
Channel Id: undefined
Length: 15min 53sec (953 seconds)
Published: Mon Oct 11 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.