tmap

R package for thematic maps

Github星跟蹤圖

tmap: thematic maps in R

Build Status
AppVeyor Build Status
Coverage Status
License
CRAN
Downloads

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.

See below the source code for these images.

Installation

tmap is available on CRAN (version 2.3-2). Installation is straightforward:

install.packages("tmap")

However, some operating systems require additional libraries.
The installation procedure is as follows:

Windows
No additional installation required.

Linux (Ubuntu)
See installation script for Ubuntu 16 and 17/18. Please address installation issues in the issue thread.

macOS
See http://www.kyngchaos.com. Please address installation issues in the issue thread.

Development

The latest development version can be installed using devtools.
In order to use the development version of tmap, it is recommended to use the development version of tmaptools as well (see tmaptools):

library(devtools)
install_github("mtennekes/tmaptools")
install_github("mtennekes/tmap")

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)

Reference

Tennekes, M., 2018, tmap: Thematic Maps in R, Journal of Statistical Software, 84(6), 1-39

This paper has been written for tmap 1.11-2. See the reproducible code using tmap 2.x.

Vignettes

tmap: get started!

tmap: what is changed in version 2.0?

Tutorials

tmap in RMarkdown

Presentations

Other resources

Getting help

There are two main places to get help with tmap:

  1. stackoverflow is a great source of answers to common tmap questions.
    It is also a great place to get help, once you have created a reproducible example that illustrates your problem.
    Please tag your questions with tmap.
  2. If you have a request or if think your problem is caused by a bug, please open an issue, preferably with a reproducible example.

主要指標

概覽
名稱與所有者r-tmap/tmap
主編程語言R
編程語言R (語言數: 2)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2013-11-25 10:16:24
推送於2025-06-06 16:23:42
最后一次提交2025-06-06 12:09:33
發布數2
最新版本名稱v4.0 (發布於 )
第一版名稱3.3-4 (發布於 )
用户参与
星數885
關注者數25
派生數125
提交數2.6k
已啟用問題?
問題數999
打開的問題數69
拉請求數122
打開的拉請求數0
關閉的拉請求數13
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?