CRAN_Status_Badge Research software impact

recmap - Compute the Rectangular Statistical Cartogram

This package contains an implementation of the RecMap construction algorithm (MP2).

Installation

from CRAN

recmap requires R 3.3 or later.

Released and tested versions of recmap are available via the CRAN network, and can be installed using the R shell via

install.packages('recmap')

from github

install the latest development version

install.packages('devtools')
library(devtools)
install_git('https://github.com/cpanse/recmap', build_vignettes = TRUE, quiet = FALSE)
library(recmap)

Use the docker public | automated build recmap image

this image contains the latest build.

docker pull cpanse/recmap \
&& docker run -d -p 8791:8787 cpanse/recmap

connect to http://yourdockerhost:8791 using a web browser

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 arXiv:1606.00464.

Demonstration

# Requires to install suggested  packages
# install.packages(c('colorspace', 'maps', 'noncensus', 'shiny'))

library(shiny)

recmap_state.x77 <- system.file("shiny-examples", "state.x77", package = "recmap")
shiny::runApp(recmap_state.x77, display.mode = "normal")

recmap_US.county <- system.file("shiny-examples", "US.county", package = "recmap")
shiny::runApp(recmap_US.county, display.mode = "normal")