map_india {mapindia} | R Documentation |
Retrieve India map data
Description
Retrieve India map data
Usage
map_india(
regions = c("states", "state", "districts", "district"),
include = c(),
exclude = c()
)
Arguments
regions |
The region breakdown for the map, can be one of
("states" , "state" , "districts" , "district" ).
The default is "states" .
|
include |
The regions to include in the resulting map. If regions is
"states" /"state" , the value can be either a state name, abbreviation or code.
For districts, the district codes must be provided as there can be multiple districts with the
same name. If states are provided in the districts map, only districts in the included states
will be returned.
|
exclude |
The regions to exclude in the resulting map. If regions is
"states" /"state" , the value can be either a state name, abbreviation or code.
For districts, the district codes must be provided as there can be multiple districts with the
same name. The regions listed in the include parameter are applied first and the
exclude regions are then removed from the resulting map. Any excluded regions
not present in the included regions will be ignored.
|
Value
A data frame of India map coordinates divided by the desired regions
.
See Also
[mapindiatools::map_india()] of which this function is a wrapper for.
Examples
str(map_india())
df <- map_india(regions = "districts")
states <- map_india(include = c("WB", "NCT", "AP"))
[Package
mapindia version 1.0.1
Index]