Install the latest CRAN release via command:
According to the code or the name of the administrative division at the county level and above provided by the Ministry of Civil Affairs of the People’s Republic of China in 2022, get the map file of online from the website http://datav.aliyun.com/portal/school/atlas/area_selector.
## Linking to GEOS 3.13.1, GDAL 3.11.0, PROJ 9.6.0; sf_use_s2() is TRUE
# code and name: https://www.mca.gov.cn/mzsj/xzqh/2022/202201xzqh.html
map2 <- getMap(code = "100000", subRegion = TRUE)
ggplot(data = map2) + geom_sf()
map4 is equivalent to map5.