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 (17.0%) to scientific vocabulary
Keywords
brunei
census
maps
Last synced: 6 months ago
·
JSON representation
Repository
Plot Brunei maps in R
Basic Info
- Host: GitHub
- Owner: Bruneiverse
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://bruneiverse.github.io/bruneimap/
- Size: 58.2 MB
Statistics
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 3
- Releases: 1
Topics
brunei
census
maps
Created over 2 years ago
· Last pushed 9 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
editor_options:
chunk_output_type: console
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# bruneimap

[](https://github.com/Bruneiverse/bruneimap/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=bruneimap)
[](https://cran.r-project.org/package=bruneimap)
Provides Brunei GIS data in the form of a `sf` (simple features) object ready for plotting and analysis in R.
The smallest (areal) unit of analysis is a "kampong" (although not all areas are actual kampongs), which in turn is contained within mukims and districts.
## Installation
Install the released version of `{bruneimap}` from [CRAN](https://CRAN.R-project.org) with:
```r
install.packages("bruneimap")
```
Or, if preferred, you may install the development version from [GitHub](https://github.com/) using:
``` r
# install.packages("pak")
pak::pkg_install("bruneiverse/bruneimap")
```
## Features
There are three `sf` files contained in the package:
1. `dis_sf` (District level boundaries)
2. `mkm_sf` (Mukim level boundaries)
3. `kpg_sf` ("Kampong" level boundaries)
Most likely you will want to use either the kampong level or mukim level data.
### Data
```{r, message = FALSE}
# Load libraries
library(tidyverse)
theme_set(theme_bw())
library(bruneimap)
library(sf)
# What's in our data set?
glimpse(kpg_sf)
```
### Plots
```{r}
#| label: bruneimap
#| message: false
#| warning: false
#| dpi: 300
ggplot(kpg_sf) +
geom_sf(aes(fill = mukim), col = "gray50", alpha = 0.8) +
geom_sf(data = mkm_sf, col = "black", lwd = 0.5, fill = NA) +
geom_sf(data = dplyr::filter(kpg_sf, is.na(mukim)), fill = "gray70", col = "gray70") +
ggrepel::geom_label_repel(
data = mutate(mkm_sf, mukim = gsub("Mukim ", "", mukim)),
aes(label = mukim, geometry = geometry),
size = 2,
alpha = 0.9,
stat = "sf_coordinates",
box.padding = 0.3,
max.overlaps = Inf,
min.segment.length = 0,
segment.size = 0.3,
segment.curvature = 0.1,
force = 5
) +
scale_fill_viridis_d(option = "mako") +
labs(x = NULL, y = NULL, title = "Mukims in Brunei") +
theme_bw() +
theme(legend.position = "none")
```
## Citation
To cite package `{bruneimap}` in publications use:
> Jamil, H (2024). _bruneimap: Maps and Spatial Data of Brunei (R
package version 0.3.1.9001)_. https://bruneiverse.github.io/bruneimap/.
A BibTeX entry for LaTeX users is:
```bibtex
@Manual{,
title = {bruneimap: {M}aps and {S}patial {D}ata of {B}runei ({R} package version 0.3.1.9001)},
author = {Haziq Jamil},
year = {2024},
url = {https://bruneiverse.github.io/bruneimap/},
}
```
## Data Sources
The GIS data included in this package is sourced sourced from [Nadi.BN](https://www.nadi.bn/data-catalogues/iot/datasets/brunei-map/#overview), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
Earlier versions of this package used GIS data obtained from the [Survey Department, Ministry of Development, Brunei Darussalam](https://geoportal.survey.gov.bn/start-gp).
While this data formed the initial basis of the package, it has since been replaced with data from Nadi.BN to align with current licensing and usage terms.
Special thanks to the creator of the [thewheat/brunei_map](https://github.com/thewheat/brunei_map) GitHub repository for their contributions, as well as the neat [web app](http://thewheat.github.io/brunei_map/) that inspired this work.
## License
The `{bruneimap}` package is licensed under the [GPL-3](https://www.gnu.org/licenses/gpl-3.0.en.html).
```plaintext
bruneimap: Maps and Spatial Data of Brunei
Copyright (C) 2024- Haziq Jamil
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
```
By using this package, you agree to comply with both licenses:
the GPL-3 license for the software and the CC BY 4.0 license for the data.
## Disclaimer
The data included in this package is provided "as is" and for research and visualisation purposes only.
The package author(s) make no guarantees regarding the accuracy, completeness, or reliability of the data.
Users are advised to consult authoritative sources for up-to-date information.
The author(s) of this package are not affiliated with Nadi.BN or any Brunei government entity.
## Contributors
All contributions to this project are gratefully acknowledged using the [`{allcontributors}` package](https://github.com/ropensci/allcontributors) following the [all-contributors](https://allcontributors.org) specification. Contributions of any kind are welcome!
|
haziqj |
nrirdnbtrsy |
alvinbjl |
Angela-29 |
SyafYus |
Dwaaz |
HafeezulRaziq |
|
ANajwa-20 |
nswaaan |
MrJaZzi |
Syfii |
Owner
- Name: Bruneiverse
- Login: Bruneiverse
- Kind: organization
- Location: Brunei Darussalam
- Repositories: 1
- Profile: https://github.com/Bruneiverse
Statistical modelling of spatio-temporal data: An application to property prices in Brunei
GitHub Events
Total
- Create event: 8
- Release event: 1
- Issues event: 4
- Watch event: 2
- Delete event: 6
- Issue comment event: 5
- Push event: 67
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 16
- Fork event: 2
Last Year
- Create event: 8
- Release event: 1
- Issues event: 4
- Watch event: 2
- Delete event: 6
- Issue comment event: 5
- Push event: 67
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 16
- Fork event: 2
Packages
- Total packages: 1
-
Total downloads:
- cran 189 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: bruneimap
Maps and Spatial Data of Brunei
- Homepage: https://github.com/Bruneiverse/bruneimap
- Documentation: http://cran.r-project.org/web/packages/bruneimap/bruneimap.pdf
- License: GPL (≥ 3)
-
Latest release: 0.3.1
published about 1 year ago
Rankings
Dependent packages count: 27.5%
Dependent repos count: 33.9%
Average: 49.5%
Downloads: 87.0%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- sf * imports
- tidyverse * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 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