欢迎加入 TidyFriday !
现在加入即可享受 8 折优惠! See: https://czxa.top/posts/34814/
About one week ago, I added a new functions to
hchinamap package, that is
provincepoint(). these two functions can map points on chinese map and it province map. The tweets indtroduce a method to display the geographical distribution of your wechat friends on chinese map, and also some other methods to plot wechat friends’s geographical distribution.
itchat, a python module, to get wechat friends data:
Next, source it by
reticulate package, a R package, provided a interface between R and Python.
tXvh2UTmo4z0zq5t41XLPTm1kQbMHjYl is my baidu map api key, it’s limited, so please do not abuse it.
The provincepoint() can be used to mark points on province maps, for example, Guangdong province map:
hchinamap package can be use to plot filled map of China:
provincedf <- wxdf %>%
leafletCN package provides a simple method to plot interactive Chinese maps:
countydf <- wxdf %>%
You can also add markers:
wxicon <- makeIcon(
baidumap also can be used to plot Chinese map:
It doesn’t look right!
Update your browser to view this website correctly. Update my browser now