Learn R Programming

tmap (version 0.6)

tm_borders: Draw polygon borders

Description

This layer defines the borders of the polygons. Color, line width and line type can be set.

Usage

tm_borders(col = "grey40", lwd = 1, lty = "solid")

Arguments

col
line color
lwd
line width (see par)
lty
line type (see par)

Value

See Also

../doc/tmap-nutshell.html{vignette("tmap-nutshell")}

Examples

Run this code
## Europe example
data(Europe)
tm_shape(Europe) + tm_borders()

## Netherlands example
data(NLD_prov)
data(NLD_muni)

tm_shape(NLD_prov) + 
    tm_fill("name") + 
tm_shape(NLD_muni) + 
    tm_borders() + 
tm_shape(NLD_prov) + 
    tm_borders(lwd=2) +
    tm_text("name") +
tm_layout_NLD("Provinces and municipalities", legend.show=FALSE)

Run the code above in your browser using DataLab