Last chance! 50% off unlimited learning
Sale ends in
Add axis labels
tm_xlab(text, size = 0.8, rotation = 0)tm_ylab(text, size = 0.8, rotation = 90)
text for the axis
fontsize, by default 0.8
rotation angle in degrees. By default, 0 for the x axis label and 90 for the y axis label.
# NOT RUN {
data(World)
qtm(World, fill="#FFF8DC", projection="longlat", inner.margins=0) +
tm_grid(x = seq(-180, 180, by=20), y=seq(-90,90,by=10), col = "gray70") +
tm_xlab("Longitude") +
tm_ylab("Latitude")
# }
Run the code above in your browser using DataLab