Thanks to visit codestin.com
Credit goes to github.com

Skip to content

shubhamdutta26/mapindiatools

Repository files navigation

mapindiatools

R-CMD-check Codecov test coverage

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.

Map data

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.

Installation

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")

Usage

To begin using mapindiatools, import the package using the library command:

library(mapindiatools)

Acknowledgments

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.

About

Mapping Data for 'mapindia' Package

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages