recmap

draw rectangular statistical cartograms - CRAN package

https://github.com/cpanse/recmap

Science Score: 59.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 12 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary

Keywords

cartogram cran-r demographics genetic-algorithm geovisualization graph-drawing spatial spatial-data-analysis value-by-area-maps
Last synced: 6 months ago · JSON representation

Repository

draw rectangular statistical cartograms - CRAN package

Basic Info
Statistics
  • Stars: 21
  • Watchers: 2
  • Forks: 1
  • Open Issues: 6
  • Releases: 5
Topics
cartogram cran-r demographics genetic-algorithm geovisualization graph-drawing spatial spatial-data-analysis value-by-area-maps
Created almost 10 years ago · Last pushed 7 months ago
Metadata Files
Readme License

README.md

CRAN_Status_Badge Research software impact JSS codecov

recmap - Compute the Rectangular Statistical Cartogram

This package implements the RecMap construction algorithm (MP2) using the GA CRAN package as a metaheuristic.

rectangular population cartogram construction demo - animated gif

1. Installation

use CRAN

recmap requires R 3.6 or later.

Released and tested versions of recmap are available via CRAN, and can be installed using the following code

{r} install.packages('recmap')

before running, R CMD build and R CMD check or running the shiny demo execute {r} pkgs <- c('colorspace', 'doParallel', 'DT', 'knitr', 'maps', 'shiny', 'testthat', 'tufte') pkgs <- pkgs[(!pkgs %in% unique(installed.packages()[,'Package']))] if(length(pkgs) > 0){install.packages(pkgs)}

2. Documentation

The package ships with a package vignette (browseVignettes('recmap')) and a reference manual (just type ?recmap on the R shell). Both documents are also available on the package's CRAN page. A white paper containing more technical information and examples is available through jss.v086.c01.

3. Demonstration

Run an interactive shiny application

{r} library(recmap) GA::gaControl("useRcpp" = FALSE) # apple M1 recmap_shiny <- system.file('shiny-examples', package = 'recmap') shiny::runApp(recmap_shiny, display.mode = 'normal')

To run the recmap shiny demonstration as a stand-alone application on Linux and macOS systems, use the Terminal application and add the following code to your alias file, e.g., $HOME/.bashrc

alias recmapShiny="R -e \"library(shiny); \ recmap_shiny <- system.file('shiny-examples', package = 'recmap'); \ shiny::runApp(recmap_shiny, display.mode = 'normal', launch.browser=TRUE)\""

execute

. $HOME/.bashrc && recmapShiny

4. (Frequently) Asked Questions

4.1 Is there an easy way to convert a recmap object to an sf object?

Use as.SpatialPolygonsDataFrame, see also issue #13. The as.recmap function performs the transformation from a SpatialPolygonsDataFrame into a recmap compatible object.

5. Related approaches

Owner

  • Name: Christian Panse
  • Login: cpanse
  • Kind: user
  • Location: 47N 008E
  • Company: Swiss federal institute of technology in Zurich

proteome informatics; ms comp; visualization; maps; code; reproducible research @hb9feb@fosstodon.org

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Push event: 3
Last Year
  • Issues event: 1
  • Watch event: 2
  • Push event: 3

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 546
  • Total Committers: 3
  • Avg Commits per committer: 182.0
  • Development Distribution Score (DDS): 0.456
Past Year
  • Commits: 27
  • Committers: 2
  • Avg Commits per committer: 13.5
  • Development Distribution Score (DDS): 0.111
Top Committers
Name Email Commits
Christian Panse cp@f****h 297
Christian Panse c****e 248
Dirk Eddelbuettel e****d@d****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 19
  • Total pull requests: 2
  • Average time to close issues: 14 days
  • Average time to close pull requests: 5 months
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.47
  • Average comments per pull request: 0.5
  • Merged pull requests: 1
  • 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
  • cpanse (18)
  • cpsievert (1)
Pull Request Authors
  • eddelbuettel (1)
  • setgree (1)
Top Labels
Issue Labels
enhancement (2) bug (2)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 624 last-month
  • Total docker downloads: 21,777
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 24
  • Total maintainers: 1
cran.r-project.org: recmap

Compute the Rectangular Statistical Cartogram

  • Versions: 24
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 624 Last month
  • Docker Downloads: 21,777
Rankings
Stargazers count: 12.9%
Forks count: 21.9%
Average: 25.1%
Downloads: 25.4%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • GA >= 3.1 depends
  • R >= 3.6 depends
  • Rcpp >= 1.0 depends
  • sp >= 1.3 depends
  • doParallel * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • shiny * suggests
  • testthat * suggests
  • tufte * suggests
.github/workflows/r.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v2 composite
  • r-lib/actions/setup-r v1 composite
inst/Dockerfile docker
  • rocker/geospatial 4.0.3-daily build