Styling and symbology
Multi-variable symbologies
Section titled “Multi-variable symbologies”1.1. Bivariate choropleth map of barangays showing population density and annual population rate
Section titled “1.1. Bivariate choropleth map of barangays showing population density and annual population rate”What we want to achieve
Section titled “What we want to achieve”- A map of Quezon City barangays showing both the population growth rate (2000 to 2020) and the people per 100 square meters.
What we have
Section titled “What we have”- adm_brgy_quezon_city_pop2000-2020 - the barangay-level admin boundary data generated from a previous exercise with population from 2000 to 2020
Relevant QGIS knowledge/skills
Section titled “Relevant QGIS knowledge/skills”- Load the adm_brgy_quezon_city_pop2000-2020 layer. Make sure that it already has the fields for population from 2000 to 2020.
- Duplicate the adm_brgy_quezon_city_pop2000-2020 layer. Since we’ll be creating a bivariate choropleth map using blending modes, we need 2 vector layers to show. In this case, we’ll show the annual population growth from 2000-2020 and the number of people per 100sqm in the barangay. Name the two layers brgy_rate and brgy_popden.
-
Next, we make a choropleth map for the brgy_rate layer using a Graduated symbology using the following parameters.
- Symbology: Graduated
- Value:
(pop2020-pop2000)/20
- Classes
- Low
- Color: #e8e8e8
- Values: -500.00 - 0.00
- Moderate
- Color: #dfb0d6
- Values: 0.00 - 500.00
- High
- Color: #be64ac
- Values: 500.00 – 5000.00
- Low
- Your brgy_rate layer should look like:
- Do the same for the brgy_popden layer but our parameters will be:
- Symbology: Graduated
- Value:
100*pop2020/$area
- Classes
- Low
- Color: #e8e8e8
- Values: 0.000 - 1.500
- Moderate
- Color: #ace4e4
- Values: 1.500 - 3.000
- High
- Color: #5ac8c8
- Values: 3.000 - 15.000
- Low
- Your brgy_popden layer should look like:
- Now that you have the two choropleth maps, create the bivariate choropleth effect by changing the blending mode of the top layer (brgy_popden) to Multiply.
1.2. Using both size and color to communicate information about the districts
Section titled “1.2. Using both size and color to communicate information about the districts”What we want to achieve
Section titled “What we want to achieve”- Use circles to show population information about districts in Quezon City where the size pertains to the people per 1000 sqm and the color indicates the annual population growth from 2000 to 2020.
What we have
Section titled “What we have”- adm_dist_quezon_city_pop2000-2020 - the district-level admin boundary data generated from a previous exercise with population from 2000 to 2020
Relevant QGIS knowledge/skills
Section titled “Relevant QGIS knowledge/skills”Option 1 - Geometry generator approach
Section titled “Option 1 - Geometry generator approach”- Load the adm_dist_quezon_city_pop2000-2020 and duplicate the layer.
- Rename one base and apply a simple single symbol symbology.
- On the other layer, selece Geometry Generator as its Symbol layer type.
- Change the Geometry type to Point/MultiPoint and use the following expression to generate a centroid:
centroid(@geometry)
- On the Simple Marker, use the Assistant to override the Size parameter.
- Use the following parameters:
- Source
1000*pop2020/$area
- Values from 10 to 35
- Output
- Size from 500
- to 3500
- Source
- Your layer should now look like below:
- Next, let’s use the Assistant to override the Symbol Fill and Symbol Stroke Color parameters.
Option 2 - Centroid approach
Section titled “Option 2 - Centroid approach”- Add a new field to the adm_dist_quezon_city_pop2000-2020 layer to hold the number of people per 1000 square meters using the following expression:
1000*pop2020/$area
- Run the Centroid processing algorithm to create a new point layer (centroid) based on adm_dist_quezon_city_pop2000-2020.
- A new layer (Centroid) should be created.
- Apply a Graduated symbology and use the following parametres:
- Value: pop_per_1000sqm
- Method: Size
- Size from: 500 to 3500 Map Units
- Classes:
- 10 - 15
- 15 - 20
- 20 - 25
- 25 - 30
- 30 - 35
- Your Centroid layer should look like below:
- Use the Assistant to override the Symbol Fill Color with the following parameters:
- Source:
(pop2020-pop2000)/20
- Values from: 500 to 15000
- Source:
- Your layer should look like below:
Certification and support
Section titled “Certification and support”Contact us or sign-up to our courses if you are interested in having this as an instructor-led or self-paced course.