tmap-package: Thematic Maps
Description
Thematic maps are geographical maps in which statistical data are visualized. This package offers a flexible, layer-based, way to create thematic maps, such as choropleths and bubble maps. It is based on the grammar of graphics, and resembles the syntax of ggplot2.Quick plotting method
ll{
qtm
To plot a thematic map
--------------------------- ---------------------------------------------------------------------------------------------------
}Main plotting method
Shape specification:
ll{
tm_shape
To specify a shape object
--------------------------- ---------------------------------------------------------------------------------------------------
}
Aesthetics layers:
ll{
tm_fill
To create a polygon layer (without borders)
tm_borders
To create polygon borders
tm_polygons
To create a polygon layer with borders
tm_bubbles
To create a layer of bubbles
tm_dots
To create a layer of dots
tm_lines
To create a layer of lines
tm_raster
To create a raster layer
tm_text
To create a layer of text labels
--------------------------- ---------------------------------------------------------------------------------------------------
}
Facetting (small multiples)
ll{
tm_facets
To define facets
--------------------------- ---------------------------------------------------------------------------------------------------
}
Attributes:
ll{
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
--------------------------- ---------------------------------------------------------------------------------------------------
}
Layout element:
ll{
tm_layout
To adjust the layout (main function)
tm_legend
Shortcut to adjust the legend
--------------------------- ---------------------------------------------------------------------------------------------------
}Handy tool functions
ll{
bb
To create, extract or modify a bounding box
get_asp_ratio
To get the aspect ratio of a shape object
get_IDs
To get ID values of a shape object
append_data
To append a data frame to a shape object
approx_areas
To approximate area sizes of polygons
calc_densities
To calculate density values
get_projection
To get the map projection
set_projection
To set the map projection
split
To split a shape object
sbind
To bind shape objects
map_coloring
To color polygons with different colors for adjacent polygons
--------------------------- ---------------------------------------------------------------------------------------------------
}Generate spatial objects
ll{
smooth_map
To create a smooth map (raster, contour lines and dasymetric polygons)
smooth_raster_cover
To create a smooth cover of a raster object
sample_dots
To sample dots from polygons
points_to_raster
To bin spatial points to a raster
poly_to_raster
To convert polygons to a raster
--------------------------- ---------------------------------------------------------------------------------------------------
}Input functions
ll{
read_shape
To read a shape object
read_GPX
To read a GPX file
read_osm
To read Open Street Map data
--------------------------- ---------------------------------------------------------------------------------------------------
}Output functions
ll{
itmap
Interactive tmap widget
animation_tmap
Create an animation
save_tmap
To save thematic maps
write_shape
To write a shape object
--------------------------- ---------------------------------------------------------------------------------------------------
}Spatial datasets
ll{
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 ../doc/tmap-nutshell.html{vignette("tmap-nutshell")
} for a short manual with examples.See Also
../doc/tmap-nutshell.html{vignette("tmap-nutshell")
}