tmap: thematic maps in R
tmap is an actively maintained open-source R-library for drawing thematic maps, written by Martijn Tennekes. The API is based on A Layered Grammar of Graphics by Hadley Wickham and resembles the syntax of ggplot2, a popular R-library for drawing charts.
Installation
tmap is available on CRAN. The latest version is 1.6-1 (2016-10-29).
The tmap packages relies on the R packages rgdal and rgeos, which depend on the external libraries gdal, proj.4 and geos. On Windows, these are embedded in rgdal and rgeos. On Linux (Ubuntu), these libraries can be installed as follows:
sudo apt-get install libgdal-dev
sudo apt-get install libproj-dev
sudo apt-get install libgeos-devSee source pages for gdal, proj, and geos. For Mac OS users, see http://www.kyngchaos.com.
Development
Odd numbered versions will be development versions and even numbered versions stable CRAN releases (as with data.table).
The latest development version can be installed using devtools. In the latest development version, non-plotting functions have been migrated to tmaptools.
library(devtools)
install_github("mtennekes/tmaptools")
install_github("mtennekes/tmap", subdir = "pkg")See NEWS for the latest features and improvements and the issue list for discussions of enhancements and bugs.
Do you want to help with the development of the package? Please let me know! Any feedback, requests, tips, or bug reports are welcome!
Usage
library(tmap)Vignettes, Demos, and Examples
tmap modes: plot and interactive view
Presentation
tmap: creating thematic maps in a flexible way