library(tmap)
library(sf)
null_island = st_point(c(0, 0))
null_island = st_sfc(null_island, crs = "EPSG:4326")
null_island = st_sf(name = "Null Island", geom = null_island)
tm_shape(null_island) +
  tm_graticules(labels.col = "gray40") +
  tm_text("name", size = 5, fontface = "italic") +
  tm_layout(bg.color = "lightblue") +
  tm_title("You are here:", color = "gray40")


Robinlovelace/geocompr documentation built on June 14, 2025, 1:21 p.m.