rmap
rmap: An R package to plot and compare tabular data on customizable maps across scenarios and time - Published in JOSS (2022)
Science Score: 98.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
Found 7 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
3 of 5 committers (60.0%) from academic institutions -
✓Institutional organization owner
Organization jgcri has institutional domain (www.pnnl.gov) -
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Repository
Mapping software with pre-loaded global and local maps
Basic Info
- Host: GitHub
- Owner: JGCRI
- License: other
- Language: R
- Default Branch: main
- Homepage: https://jgcri.github.io/rmap/
- Size: 624 MB
Statistics
- Stars: 9
- Watchers: 7
- Forks: 0
- Open Issues: 1
- Releases: 6
Topics
Metadata Files
README.md
Introduction
rmap is a comprehensive mapping package to create easily customizable maps and compare across scenarios, years and data classes. The package allows creation of difference maps as well as customizable legends, color palettes and styles.
Citation
Khan, Z., Zhao, M., Vernon, C.R., Wild, T. and Yarlagadda, B., 2022. rmap: An R package to plot and compare tabular data on customizable maps across scenarios and time. Journal of Open Source Software, 7(77), p.4015. DOI: https://doi.org/10.21105/joss.04015
Installation Guide
Download and install:
- R (https://www.r-project.org/)
- R studio (https://www.rstudio.com/) (Optional)
In R or R studio:
r install.packages("devtools") devtools::install_github("JGCRI/rmap")
Additional steps for UBUNTU from a terminal
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev libavfilter-dev libmagick++-dev
Additional steps for MACOSX from a terminal
brew install pkg-config
brew install gdal
brew install geos
brew install imagemagick@6
Statement of need
rmap is meant to help users having limited to no GIS knowledge use R for spatial visualization of tabular spatial data. rmap is not meant to be a replacement for spatial manipulation or cartographic software but focuses on the simple plotting of polygon and gridded data for spatio-temporal visualization of tabular data with a focus on comparing across scenarios and time periods. Several existing R packages (e.g. tmap, cartography, rworldmap, GISTools, choroplethr, sp and sf) have been developed to conduct spatial visualization and analytics in R without depending on external software. rmap enhances the following key capabilities which are limited in these existing packages:
- Pre-built maps: Existing packages come with only a few examples of built-in maps as package data.
rmapcomes with a growing collection of country, state, river basin, as well as other customized maps that are added into the package data based on user needs and requests. While built-in maps increase the size of the package, having direct access to these allows for automated searching and quick deployment of relevant shapefiles without the need to download any data. A list of pre-built maps inrmapcan be found in the Built-in Maps section of the user guide. - Direct data table to map: Existing packages are not able to plot a map directly given only a simple data frame or a CSV file as an input.
rmaphas an automaticmap_find_dffunction that searches for the appropriate built-in map based on the regions provided in asubRegioncolumn and values in avaluecolumn. The sub-regions in thesubRegioncolumn must be one of the sub-regions in the existing set ofrmapbuilt-in maps. This truly frees users from the need for any other spatial data needs and they can simplymap()their own data tables directly. - Difference maps: Existing packages do not produce difference maps to compare across scenarios or time periods.
rmapprovides this functionality by automatically recognizing multiple scenarios and time periods to produce difference maps across these dimensions. An important aspect of spatial data is exploring the difference between two scenarios or time periods andrmapmakes this a seamless process. - Post-process customization: Existing packages do not produce output objects that can be saved and then customized. Customization of the maps in existing packages is limited to package specific functionality and arguments.
rmapproducesggplotobjects in which every element (axis, grids, titles, colors, line widths, facets) can all be customized after the map has been produced. This allows users to capitalize on existing knowledge of the widely usedggplot2package and its arguments.
Related Publications
Khan, Z., Wild, T., Carrazzone, M.E.S., Gaudioso, R., Mascari, M.P., Bianchi, F., Weinstein, F., Prez, F., Prez, W., Miralles-Wilhelm, F. and Clarke, L., 2020. Integrated energy-water-land nexus planning to guide national policy: an example from Uruguay. Environmental Research Letters. DOI: https://doi.org/10.1088/1748-9326/ab9389
Khan, Z., Wild, T., Vernon, C., Miller, A., Hejazi, M., Clarke, L., Miralles-Wilhelm, F., Castillo, R.M., Moreda, F., Bereslawski, J.L., Suriano, M. and Casado, J., 2020. Metis A Tool to Harmonize and Analyze Multi-Sectoral Data and Linkages at Variable Spatial Scales. Journal of Open Research Software, 8(1), p.10. DOI: http://doi.org/10.5334/jors.292
Owner
- Name: Joint Global Change Research Institute
- Login: JGCRI
- Kind: organization
- Location: College Park, MD, USA
- Website: https://www.pnnl.gov/projects/jgcri
- Repositories: 129
- Profile: https://github.com/JGCRI
Advancing fundamental understanding of human and Earth systems
JOSS Publication
rmap: An R package to plot and compare tabular data on customizable maps across scenarios and time
Authors
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
Earth System Science Interdisciplinary Center (ESSIC), University of Maryland, College Park, MD, USA
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Zarrar Khan | z****n@p****v | 251 |
| zarrarkhan | k****n@g****m | 70 |
| Mengqi Zhao | m****z@u****u | 5 |
| crvernon | c****n@g****m | 5 |
| Daniel S. Katz | d****z@i****g | 1 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 11
- Total pull requests: 83
- Average time to close issues: 2 months
- Average time to close pull requests: 4 days
- Total issue authors: 10
- Total pull request authors: 3
- Average comments per issue: 1.82
- Average comments per pull request: 0.02
- Merged pull requests: 81
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- zarrarkhan (2)
- FrancyJGLisboa (1)
- ejarbuck (1)
- KennethAnn (1)
- emmaliulu (1)
- wef7v (1)
- brinday (1)
- jonsampedro (1)
- mengqi-z (1)
- jayfuhrman (1)
Pull Request Authors
- zarrarkhan (80)
- crvernon (2)
- danielskatz (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- R >= 3.0 depends
- RColorBrewer * imports
- data.table * imports
- dplyr * imports
- ggplot2 * imports
- ggrepel * imports
- grDevices * imports
- jgcricolors * imports
- magick * imports
- magrittr * imports
- methods * imports
- raster * imports
- rlang * imports
- scales * imports
- sf * imports
- stringr * imports
- tibble * imports
- tidyr * imports
- cowplot * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
- actions/checkout v1 composite
- r-lib/actions/setup-pandoc v2-branch composite
- r-lib/actions/setup-r v2-branch composite
- r-lib/actions/setup-tinytex v2-branch composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2-branch composite
- r-lib/actions/setup-r v2-branch composite
- stefanzweifel/git-auto-commit-action v4 composite
- actions/cache v1 composite
- actions/checkout v1 composite
- r-lib/actions/setup-pandoc v2-branch composite
- r-lib/actions/setup-r v2-branch composite
- r-lib/actions/setup-tinytex v2-branch composite