CRAN_Status_Badge Research software impact Build Status

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_shiny <- system.file("shiny-examples", package = "recmap")
shiny::runApp(recmap_shiny, display.mode = "normal")