Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.1%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Plot Map of Indian Subcontinent
Basic Info
- Host: GitHub
- Owner: shubhamdutta26
- License: other
- Language: R
- Default Branch: master
- Homepage: https://shubhamdutta26.github.io/mapindia/
- Size: 13 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Created over 1 year ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
Contributing
License
Codemeta
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
dpi = 200,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# mapindia
[](https://github.com/shubhamdutta26/mapindia/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/shubhamdutta26/mapindia)
[](https://CRAN.R-project.org/package=mapindia)
[](https://cran.r-project.org/package=mapindia)
[](https://cran.r-project.org/package=mapindia)
The goal of mapindia is to simplify mapping of the Indian subcontinent. It has convenient functions for plotting choropleths, visualizing spatial data, and handling state/district codes.
**Note:** The 3-digit district codes were merged with the 2-digit state codes to create a 5-digit district code.
## Installation
To install mapindia from CRAN:
```{r}
#| label: cran-tbd
#| eval: false
install.packages("mapindia")
```
You can install the development version of mapindia from [GitHub](https://github.com/) with:
```{r}
#| label: github
#| eval: false
# install.packages("pak")
pak::pak("shubhamdutta26/mapindia")
```
## Usage
``` {r}
#| label: load
#| eval: false
library(mapindia)
```
## Example
Plot basic maps of the Indian subcontinent with states and districts:
```{r states-dist}
library(mapindia)
library(ggplot2)
library(cowplot)
states <- plot_india("states") +
geom_sf(fill= "antiquewhite") +
theme(panel.grid.major =
element_line(color = gray(.5), linetype = "dashed", linewidth = 0.2),
panel.background = element_rect(fill = "aliceblue"))
districts <- plot_india("districts") +
geom_sf(fill= "gray") +
theme(panel.grid.major =
element_line(color = gray(.5), linetype = "dashed", linewidth = 0.2),
panel.background = element_rect(fill = "aliceblue"))
cowplot::plot_grid(states, districts, nrow = 1)
```
Visualize zones such as the Central or Eastern Zonal Councils:
```{r zones, warning=FALSE}
central <- plot_india("states", include = .central, exclude = "UK", labels = TRUE) +
geom_sf(fill= "antiquewhite")
east <- plot_india("states", include = .east, labels = FALSE)
cowplot::plot_grid(central, east, nrow = 1)
```
Visualize individual states such as the West Bengal or Tamil Nadu:
```{r states, warning=FALSE}
mh <- plot_india("districts", include = "MH")
tn <- plot_india("state", include = "Tamil Nadu", labels = FALSE)
cowplot::plot_grid(mh, tn, nrow = 1)
```
Use your data for visualizations as well:
```{r data, warning=FALSE}
statepop2011 <- plot_india("states", data = statepop, values = "pop_2011") +
scale_fill_continuous(low = "blue", high = "yellow", guide = "none")
wbpop2011 <- plot_india("districts", data = wb_2011, values = "pop_2011", include = "WB") +
scale_fill_continuous(low = "green", high = "red", guide = "none")
cowplot::plot_grid(statepop2011, wbpop2011, nrow = 1)
```
Owner
- Name: Shubham Dutta
- Login: shubhamdutta26
- Kind: user
- Location: Greater Boston
- Company: Massbiologics
- Website: https://www.shubhamdutta.com/
- Twitter: ursshubham
- Repositories: 1
- Profile: https://github.com/shubhamdutta26
Genomics | Antibodies | Flow Cytometry | Data Science
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "mapindia",
"description": "Get map data frames for the Indian subcontinent with different region levels (e.g., district, state). The package also offers convenience functions for plotting choropleths, visualizing spatial data, and handling state/district codes.",
"name": "mapindia: Plot Map of the Indian Subcontinent",
"relatedLink": "https://www.shubhamdutta.com/mapindia/",
"codeRepository": "https://github.com/shubhamdutta26/mapindia",
"issueTracker": "https://github.com/shubhamdutta26/mapindia/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "1.0.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"author": [
{
"@type": "Person",
"givenName": "Shubham",
"familyName": "Dutta",
"email": "shubhamdutta26@gmail.com",
"@id": "https://orcid.org/0000-0001-8484-0717"
}
],
"copyrightHolder": [
{
"@type": "Person",
"givenName": "Shubham",
"familyName": "Dutta",
"email": "shubhamdutta26@gmail.com",
"@id": "https://orcid.org/0000-0001-8484-0717"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Shubham",
"familyName": "Dutta",
"email": "shubhamdutta26@gmail.com",
"@id": "https://orcid.org/0000-0001-8484-0717"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"version": ">= 3.0.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 2.10"
},
"2": {
"@type": "SoftwareApplication",
"identifier": "ggplot2",
"name": "ggplot2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=ggplot2"
},
"3": {
"@type": "SoftwareApplication",
"identifier": "mapindiatools",
"name": "mapindiatools",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=mapindiatools"
},
"4": {
"@type": "SoftwareApplication",
"identifier": "rlang",
"name": "rlang",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=rlang"
},
"5": {
"@type": "SoftwareApplication",
"identifier": "sf",
"name": "sf",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=sf"
},
"6": {
"@type": "SoftwareApplication",
"identifier": "vdiffr",
"name": "vdiffr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=vdiffr"
},
"SystemRequirements": null
},
"fileSize": "613.532KB",
"releaseNotes": "https://github.com/shubhamdutta26/mapindia/blob/master/NEWS.md",
"readme": "https://github.com/shubhamdutta26/mapindia/blob/master/README.md",
"contIntegration": [
"https://github.com/shubhamdutta26/mapindia/actions/workflows/R-CMD-check.yaml",
"https://app.codecov.io/gh/shubhamdutta26/mapindia"
]
}
GitHub Events
Total
- Create event: 4
- Release event: 1
- Issues event: 4
- Push event: 34
Last Year
- Create event: 4
- Release event: 1
- Issues event: 4
- Push event: 34
Packages
- Total packages: 1
-
Total downloads:
- cran 507 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: mapindia
Plot Map of the Indian Subcontinent
- Homepage: https://github.com/shubhamdutta26/mapindia
- Documentation: http://cran.r-project.org/web/packages/mapindia/mapindia.pdf
- License: MIT + file LICENSE
-
Latest release: 1.0.1
published over 1 year ago
Rankings
Dependent packages count: 27.8%
Dependent repos count: 34.2%
Average: 49.7%
Downloads: 87.0%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- ggplot2 * imports
- mapindiatools * imports
- rlang * imports
- sf * imports
- testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml
actions
- r-hub/actions/checkout v1 composite
- r-hub/actions/platform-info v1 composite
- r-hub/actions/run-check v1 composite
- r-hub/actions/setup v1 composite
- r-hub/actions/setup-deps v1 composite
- r-hub/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite