Usage
tm_grid(x = NA, y = NA, n.x = NA, n.y = NA, projection = NA, col = NA, lwd = 1, alpha = NA, labels.size = 0.6, labels.col = NA, labels.inside.frame = TRUE)
Arguments
x
x coordinates for vertical grid lines. If NA
, it is specified with a pretty scale and n.x
.
y
y coordinates for horizontal grid lines. If NA
, it is specified with a pretty scale and n.y
.
n.x
prefered number of grid lines for the x axis.
n.y
prefered number of grid lines for the y axis.
projection
projection character. If specified, the grid lines are projected accordingly. See set_projection
for projection details. Many world maps are projected, but still have latitude longitude ("longlat"
) grid lines. col
color of the grid lines.
lwd
line width of the grid lines
alpha
alpha transparency of the grid lines. Number between 0 and 1. By default, the alpha transparency of col
is taken.
labels.size
font size of the tick labels
labels.col
font color of the tick labels
labels.inside.frame
Show labels inside the frame?