Learn R Programming

tmap (version 1.11)

tmap-element: tmap element

Description

Building block for drawing thematic maps. All element functions have the prefix tm_.

Arguments

Details

The fundamental, and hence required element is

  • tm_shape that specifies the shape object, and also specifies the projection and bounding box

The elements that serve as aesthetics layers are

The layers can be stacked by simply adding them with the + symbol. The combination of the elements described above form one group. Multiple groups can be stacked. Each group should start with tm_shape.

The attribute elements are

The element tm_facets specifies facets (small multiples). The element tm_layout is used to change the layout of the map.

See Also

vignette("tmap-nutshell")

vignette("tmap-modes")

The examples in each of the element functions