The goal of mapindiatools is to serve as a container package for the
maps data used in mapindia package. This data has been separated to
keep the size of the mapindia package manageable and facilitate easier
maintenance, while enabling more frequent updates to the Indian map data
frame without relying on mapindia package updates.
The geojson files are stored in the . The data was read using the sf
package, appropriately modified using the build_mapping_data()
function, and saved as .gpkg files in
mapindiatoolsdata
repository. The centroids were also calculated using the
compute_centroids() function. These files were then stored as internal
data in R/ folder.
Note: The 3-digit code11 codes for districts were merged with the 2-digit state codes to create a 5-digit code for the districts.
To install mapindiatools from CRAN:
install.packages("mapindiatools")You can install the development version of mapindiatools from GitHub with:
# install.packages("pak")
pak::pak("shubhamdutta26/mapindiatools")To begin using mapindiatools, import the package using the library
command:
library(mapindiatools)I would like to thank pdil since I have used
his usmap package to write most of the functions in this package. I
would also like to thank datta07 for the
geojson files of the Indian subcontinent.