Learn R Programming

tmap (version 1.6-1)

tmap-package: Thematic Map Visualization

Description

Thematic maps are geographical maps in which spatial data distributions are visualized. This package offers a flexible, layer-based, and easy to use approach to create thematic maps, such as choropleths and bubble maps. It is based on the grammar of graphics, and resembles the syntax of ggplot2.

Arguments

Quick plotting method

qtm
To plot a thematic map
---------------------------
---------------------------------------------------------------------------------------------------

Main plotting method

Shape specification:
tm_shape
To specify a shape object
---------------------------
---------------------------------------------------------------------------------------------------
Aesthetics base layers:
tm_polygons
To create a polygon layer (with borders)
tm_symbols
To create a layer of symbols
tm_lines
To create a layer of lines
tm_raster
To create a raster layer
tm_text
To create a layer of text labels
Aesthetics derived layers:
tm_fill
To create a polygon layer (without borders)
tm_borders
To create polygon borders
tm_bubbles
To create a layer of bubbles
tm_squares
To create a layer of squares
tm_dots
To create a layer of dots
tm_markers
To create a layer of markers
tm_iso
To create a iso/contour lines
---------------------------
---------------------------------------------------------------------------------------------------
Facetting (small multiples)
tm_facets
To define facets
---------------------------
---------------------------------------------------------------------------------------------------
Attributes:
tm_grid
To create grid lines
tm_scale_bar
To create a scale bar
tm_compass
To create a map compass
tm_credits
To create a text for credits
tm_logo
To create a logo
tm_xlab and tm_ylab
To create axis labels
---------------------------
---------------------------------------------------------------------------------------------------
Layout element:
tm_layout
To adjust the layout (main function)
tm_legend
Shortcut to adjust the legend
tm_view
Options for the interactive view mode
---------------------------
---------------------------------------------------------------------------------------------------
Change options:
tmap_mode
To set the tmap mode: "plot" or "view"
ttm
To toggle between the modes
tmap_style
To set the default style
---------------------------
---------------------------------------------------------------------------------------------------
Create icons:
tmap_icons
To specify icons for markers or proportional symbols
---------------------------
---------------------------------------------------------------------------------------------------

Output functions

print
Plot in graphics device or view interactively in web browser or RStudio's viewer pane
last_map
Redraw the last map
tmap_leaflet
Obtain a leaflet widget object
animation_tmap
Create an animation
save_tmap
To save thematic maps (both in plot and view mode)
---------------------------
---------------------------------------------------------------------------------------------------

Spatial datasets

World
World country data (spatial polygons)
Europe
European country data (spatial polygons)
NLD_prov
Netherlands province data (spatial polygons)
NLD_muni
Netherlands municipal data (spatial polygons)
metro
Metropolitan araes (spatial points)
rivers
Rivers (spatial lines)
land
Global land cover (spatial grid)
---------------------------
---------------------------------------------------------------------------------------------------

Details

This page provides a brief overview of all package functions. See vignette("tmap-nutshell") for a short introduction with examples. See vignette("tmap-modes") for a short demo of the two output modes: plot and interactive view.

See Also

vignette("tmap-nutshell")

vignette("tmap-modes")