I am testing choroplethr and choroplethrmaps in Hong Kong Map. I want to show the region in Hong Kong and the vote. following is what I have done in R. But it does not work. Could you help me how can I do it?
install.packages(c("choroplethr", "choroplethrMaps"))
library(choroplethr)
setwd('/Users/hkawngnaw/Downloads')
hkmap <- readRDS("HKG_adm1.rds")
map(hkmap)
hkelection<-data.frame(c('Central and Western','Wan Chai','Eastern','Southern','Yau Tsim Mong','Sham Shui Po','Kowloon City','North','Tai Po','Sai kung','Sha Tin'))
hkelection$VOTE<-c(23307,14165,67685,32023,24907,11395,42691,27193,34183,45697,76686)
colnames<-c('Region','Value')
allcandidates$Region = allcandidates$Value
state_choropleth(allcandidates)