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
Repository
draw rectangular statistical cartograms - CRAN package
Basic Info
- Host: GitHub
- Owner: cpanse
- License: gpl-3.0
- Language: C++
- Default Branch: master
- Homepage: https://CRAN.R-project.org/package=recmap
- Size: 20.3 MB
Statistics
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 6
- Releases: 5
Topics
Metadata Files
README.md
recmap - Compute the Rectangular Statistical Cartogram
This package implements the RecMap construction algorithm (MP2) using the GA CRAN package as a metaheuristic.

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
- Rectangular Cartograms: the game, Rectangular Cartograms
- cartogram: Create Cartograms with R https://CRAN.R-project.org/package=cartogram
- Rcartogram
- High-performance software to produce flow-based cartograms.
- see also CRAN Task View: Analysis of Spatial Data
- Computing Stable Demers Cartograms - https://arxiv.org/abs/1908.07291
- Wang, L., Yuan, H., Li, X., Lu, P., & Li, Y. (2025). A New Construction Method for Rectangular Cartograms. ISPRS International Journal of Geo-Information, 14(1), 25. doi 10.3390/ijgi14010025
Owner
- Name: Christian Panse
- Login: cpanse
- Kind: user
- Location: 47N 008E
- Company: Swiss federal institute of technology in Zurich
- Website: https://fgcz.ch/compms
- Repositories: 72
- Profile: https://github.com/cpanse
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
Top Committers
| Name | 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
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
- Documentation: http://cran.r-project.org/web/packages/recmap/recmap.pdf
- License: GPL-3
-
Latest release: 1.0.20
published 6 months ago
Rankings
Maintainers (1)
Dependencies
- 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
- actions/checkout v2 composite
- actions/upload-artifact v2 composite
- r-lib/actions/setup-r v1 composite
- rocker/geospatial 4.0.3-daily build