Learn R Programming

tmaptools (version 1.0)

tmaptools-package: Thematic Map Tools

Description

This package offers a set of handy tool functions for reading and processing spatial data. The aim of these functions is to supply the workflow to create thematic maps, e.g. read shape files, set map projections, append data, calculate areas and distances, and query OpenStreetMap. The visualization of thematic maps can be done with the tmap package.

Arguments

Handy tool functions

bb
To create, extract or modify a bounding box
bb_sp
Convert bounding box to a spatial polygon
geocode_OSM
To get location from an address description
rev_geocode_OSM
To get address description from a location
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
approx_distances
To approximate distances
projection_units
Get or translate units of a projection
calc_densities
To calculate density values
get_projection
To get the map projection
set_projection
To set the map projection
is_projected
Checks if the map is projected
sbind
To bind shape objects
crop_shape
To crop shape objects
simplify_shape
To simplify a shape
map_coloring
To color polygons with different colors for adjacent polygons
get_brewer_pal
Get and plot a (modified) Color Brewer palette
---------------------------
---------------------------------------------------------------------------------------------------

Statistical transformation functions

smooth_map
To create a smooth map using a kernel density estimator
aggregate_map
To aggregate the units of a map
smooth_raster_cover
To create a smooth cover from 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 and output functions

read_shape
To read a shape object
read_GPX
To read a GPX file
read_osm
To read Open Street Map data
write_shape
To write a shape object
---------------------------
---------------------------------------------------------------------------------------------------

Details

This page provides a brief overview of all package functions.