Skip to content

Political alignment and demographics in 2018 Hong Kong Legislative Council By-election

Notifications You must be signed in to change notification settings

barramandi/legco_2018_byelection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LegCo 2018 By-Election Analysis

Political alignment and demographics in 2018 Hong Kong Legislative Council (LegCo) By-election

What it does

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.

What they are

Three interactive maps:

  1. Winning political camp and margin of votes in each District Council constituency (preview here)
  2. Monthly median income in each District Council constituency (preview here)
  3. Home ownership rate in each District Council constituency (preview here)

and an R script that creates them.

How it works

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.

What you need

The R script automatically fetches the 2018 By-Election result and 2016 By-census data.

All other packages are obtainable from CRAN.

Reference

The function to implement the shapefile in R is taking reference to stanyip/DC2015.

About

Political alignment and demographics in 2018 Hong Kong Legislative Council By-election

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.4%
  • JavaScript 3.0%
  • Other 0.6%