Get map of china from dataV.
read_map.Rd
Get map of china from dataV.
Usage
read_map(
x,
level = "province",
bound = "county",
cache_dir = "~/.cache_map",
cache_refresh = FALSE
)
Arguments
- x
Area codes in China, such as "410102".
- level
Top level of the returned map.
- bound
Boundary of the returned map.
- cache_dir
Cache directory of the returned map.
- cache_refresh
Logical value, TRUE or FALSE rerfresh the stored cached map or not.
Examples
henan <- read_map("410102", level = "province", bound = "county")
class(henan)
#> [1] "sf" "tbl_df" "tbl" "data.frame"