Title: | Mapping Data for 'mapindia' Package |
---|---|
Description: | Provides a container for data used by the 'mapindia' package. The data used by 'mapindia' has been extracted into this package so that the file size of the 'mapindia' package can be reduced considerably. The data in this package will be updated when latest data is available. |
Authors: | Shubham Dutta [aut, cre, cph] |
Maintainer: | Shubham Dutta <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.1.9000 |
Built: | 2024-11-01 05:18:55 UTC |
Source: | https://github.com/shubhamdutta26/mapindiatools |
Retrieve centroid labels
centroid_labels(regions = c("states", "districts"))
centroid_labels(regions = c("states", "districts"))
regions |
The region breakdown for the map, can be one of
( |
An 'sf' data frame of state or district centroid labels and positions
relative to the coordinates returned by the map_india
function.
Retrieve state and district codes
fetch_codes(regions = c("states", "state", "districts", "district"))
fetch_codes(regions = c("states", "state", "districts", "district"))
regions |
The region breakdown for the map, can be one of
( |
An data frame of codes of the desired regions
.
str(fetch_codes()) state_codes <- fetch_codes() district_codes <- fetch_codes(regions = "districts")
str(fetch_codes()) state_codes <- fetch_codes() district_codes <- fetch_codes(regions = "districts")
Retrieve Indian mapping data
map_india( regions = c("states", "state", "districts", "district"), include = c(), exclude = c() )
map_india( regions = c("states", "state", "districts", "district"), include = c(), exclude = c() )
regions |
The region breakdown for the map, can be one of
( |
include |
The regions to include in the resulting map. If |
exclude |
he regions to exclude in the resulting map. If |
An 'sf' data frame of indian map coordinates divided by the desired regions
.
str(map_india()) df <- map_india(regions = "districts") include_states <- map_india(include = c("WB", "NL", "AP")) exclude_states <- map_india(exclude = c("WB", "NL", "AP"))
str(map_india()) df <- map_india(regions = "districts") include_states <- map_india(include = c("WB", "NL", "AP")) exclude_states <- map_india(exclude = c("WB", "NL", "AP"))