Learn R Programming

tmap (version 1.0)

tm_grid: Coordinate grid lines

Description

Creates a tmap-element that draws coordinate grid lines.

Usage

tm_grid(n.x = 8, n.y = 8, col = "grey50", labels.size = 0.75,
  labels.col = "grey20", on.top = TRUE)

Arguments

n.x
Prefered number of grid lines for the x axis.
n.y
Prefered number of grid lines for the y axis.
col
Color for the grid lines.
labels.size
font size of the tick labels
labels.col
font color fo the tick labels
on.top
Boolean that determines whether the grid lines are drawn op top of the map (TRUE) or under the map (FALSE).