rmap

rmap: An R package to plot and compare tabular data on customizable maps across scenarios and time - Published in JOSS (2022)

https://github.com/jgcri/rmap

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

mapping maps

Keywords from Contributors

gcam gcims
Last synced: 6 months ago · JSON representation

Repository

Mapping software with pre-loaded global and local maps

Basic Info
Statistics
  • Stars: 9
  • Watchers: 7
  • Forks: 0
  • Open Issues: 1
  • Releases: 6
Topics
mapping maps
Created about 5 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog License Citation Support Zenodo

README.md

build test_coverage codecov docs status <!-- badges: end -->

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.


https://jgcri.github.io/rmap/articles/vignette_map.html https://jgcri.github.io/rmap/cheatsheet.pdf

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

  1. Download and install:

    • R (https://www.r-project.org/)
    • R studio (https://www.rstudio.com/) (Optional)
  2. 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:

  1. Pre-built maps: Existing packages come with only a few examples of built-in maps as package data. rmap comes 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 in rmap can be found in the Built-in Maps section of the user guide.
  2. 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. rmap has an automatic map_find_df function that searches for the appropriate built-in map based on the regions provided in a subRegion column and values in a value column. The sub-regions in the subRegion column must be one of the sub-regions in the existing set of rmap built-in maps. This truly frees users from the need for any other spatial data needs and they can simply map() their own data tables directly.
  3. Difference maps: Existing packages do not produce difference maps to compare across scenarios or time periods. rmap provides 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 and rmap makes this a seamless process.
  4. 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. rmap produces ggplot objects 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 used ggplot2 package 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

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
Published
September 16, 2022
Volume 7, Issue 77, Page 4015
Authors
Zarrar Khan ORCID
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
Mengqi Zhao ORCID
Earth System Science Interdisciplinary Center (ESSIC), University of Maryland, College Park, MD, USA
Chris R. Vernon ORCID
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
Thomas Wild ORCID
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
Brinda Yarlagadda ORCID
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
Editor
Hugo Ledoux ORCID

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 332
  • Total Committers: 5
  • Avg Commits per committer: 66.4
  • Development Distribution Score (DDS): 0.244
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
Committer Domains (Top 20 + Academic)

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
enhancement (3)
Pull Request Labels
publication (1) documentation (1) enhancement (1)

Dependencies

DESCRIPTION cran
  • 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
.github/workflows/build.yml actions
  • 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
.github/workflows/docs.yaml actions
  • 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
.github/workflows/test_coverage.yml actions
  • 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