Interactive map of proportion of pro-democracy voters in 2019 Hong Kong District Council Election
2019年區議會選舉結果黃藍選民分佈圖
View map here
The R script generates a map that shows the proportion of pro-democracy voters in each constituency with varying depth of yellow and blue. The more yellowish indicate higher proportion of pro-democracy voters, and vice versa.
- Shapefile of the 2019 DCCA (kudos to accessinfo.hk)
- helixcn/HK80
The R script automatically fetches the constituency details and election result from the json database file of the Stands News' election site.
All other packages are obtainable from CRAN.
The political classification of candidates is based on the Stands News' election site.
The function to implement the shapefile in R is taking reference to stanyip/DC2015.