rgeoboundaries

R client to geoBoundaries: A Political Administrative Boundaries Dataset -

https://github.com/wmgeolab/rgeoboundaries

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
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

R client to geoBoundaries: A Political Administrative Boundaries Dataset -

Basic Info
Statistics
  • Stars: 67
  • Watchers: 3
  • Forks: 9
  • Open Issues: 7
  • Releases: 0
Created almost 6 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  dev = "svg"
)
```

# rgeoboundaries 



[![GitLab CI Build Status](https://gitlab.com/dickoa/rgeoboundaries/badges/master/pipeline.svg)](https://gitlab.com/dickoa/rgeoboundaries/pipelines)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/gitlab/dickoa/rgeoboundaries?branch=master&svg=true)](https://ci.appveyor.com/project/dickoa/rgeoboundaries)
[![Codecov Code Coverage](https://codecov.io/gl/dickoa/rgeoboundaries/branch/master/graph/badge.svg)](https://codecov.io/gl/dickoa/rgeoboundaries)
[![CRAN status](https://www.r-pkg.org/badges/version/rgeoboundaries)](https://cran.r-project.org/package=rgeoboundaries)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

`rgeoboundaries` is an R client for the [geoBoundaries API](https://www.geoboundaries.org/), providing country political administrative boundaries.



## Installation

You can install the development version of rgeoboundaries using the `remotes` package:

``` {r, eval = FALSE}
# install.packages("remotes")
remotes::install_gitlab("dickoa/rgeoboundaries")
remotes::install_github("wmgeolab/rgeoboundaries")
```

## Access administrative boundaries using rgeoboundaries

This is a basic example which shows you how get Mali and Senegal boundaries and plot it

```{r plot, cache = TRUE}
library(rgeoboundaries)
library(sf)
mli_sen <- gb_adm0(c("mali", "senegal"), type = "sscgs")
plot(st_geometry(mli_sen))
```

We can also get the first administrative division of all countries in the world and use ISO3 code too

```{r plot_egy, cache = TRUE}
egy <- gb_adm1("EGY")
plot(st_geometry(egy),
     col = rgb(red = 1, green = 0, blue = 0, alpha = 0.5),
     axes = TRUE, graticule = TRUE)
```

In order to access the global administrative zones, you just need to skip the country argument (i.e set it to `NULL`) or specify `type = "CGAZ"`.


```{r plot_world, cache = TRUE}
world <- gb_adm1()
world_lambert <- st_transform(world, "+proj=laea +x_0=0 +y_0=0 +lon_0=0 +lat_0=0")
par(bty = "n")
plot(st_geometry(world_lambert),
     col = "#E39d57",
     graticule = TRUE, lwd = 0.3)
```

Finally, metadata for each country and administrative level are also available.

```{r, metadata}
knitr::kable(gb_metadata(c("mali", "senegal"), "adm1"))
```

## How to to cite

If you are using this package in your analysis, please cite the original `geoBoundaries` work:

> Runfola D, Anderson A, Baier H, Crittenden M, Dowker E, Fuhrig S, et al. (2020) geoBoundaries: A global database of political administrative boundaries. PLoS ONE 15(4): e0231866. https://doi.org/10.1371/journal.pone.0231866

Owner

  • Name: wmgeolab
  • Login: wmgeolab
  • Kind: organization

GitHub Events

Total
  • Issues event: 3
  • Watch event: 7
  • Issue comment event: 6
  • Push event: 4
  • Pull request event: 1
  • Fork event: 2
Last Year
  • Issues event: 3
  • Watch event: 7
  • Issue comment event: 6
  • Push event: 4
  • Pull request event: 1
  • Fork event: 2

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 2
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • noahdasanaike (2)
  • QLLZ (1)
  • charliejhadley (1)
  • simon-smart88 (1)
  • Nowosad (1)
  • JosiahParry (1)
Pull Request Authors
  • davidgohel (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 616 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: rgeoboundaries

geoBoundaries Client

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 616 Last month
Rankings
Stargazers count: 6.1%
Forks count: 8.7%
Dependent repos count: 16.4%
Dependent packages count: 28.6%
Average: 29.2%
Downloads: 86.0%
Maintainers (1)
Last synced: about 1 year ago

Dependencies

DESCRIPTION cran
  • R >= 3.5 depends
  • countrycode >= 1.2.0 imports
  • crul >= 0.8 imports
  • glue * imports
  • hoardr * imports
  • jsonlite * imports
  • memoise * imports
  • sf >= 0.9.3 imports
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • roxygen2 * suggests
  • testthat * suggests