/dce_2019

2019 HK District Council Election Map 2019年區議會選舉結果黃藍選民分佈圖

Primary LanguageHTML

2019 District Council Election Map

Interactive map of proportion of pro-democracy voters in 2019 Hong Kong District Council Election

2019年區議會選舉結果黃藍選民分佈圖

View map here

What it does

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.

What you need

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.

References

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.