Political alignment and demographics in 2018 Hong Kong Legislative Council (LegCo) By-election
An attempt to find out the correlation between demogrpahics and political support by combining data from the 2016 by-census and the vote counts of every counting station in the 2018 LegCo By-election.
Three interactive maps:
- Winning political camp and margin of votes in each District Council constituency (preview here)
- Monthly median income in each District Council constituency (preview here)
- Home ownership rate in each District Council constituency (preview here)
and an R script that creates them.
Each counting station in the 2018 LegCo By-election has a code with a prefix letter that corresponds to the District Council Contituency Areas (DCCA). Geographical demographics from the government census is also based on DCCA. By mapping the political support and demographics in each DCCA, it provides a glimpse of the relationship between the two.
This method is not perfect. Some DCCA do not have their own counting stations and their votes are counted in stations in neighbouring DCCA instead. This explains the grey out area in the map, most notably Sai Kung Islands. This affects the validity of the result.
- Shapefile of the 2015 DCCA (kudos to accessinfo.hk)
- helixcn/HK80
The R script automatically fetches the 2018 By-Election result and 2016 By-census data.
All other packages are obtainable from CRAN.
The function to implement the shapefile in R is taking reference to stanyip/DC2015.