library(tmap)

Maps made in plot mode

tmap_mode("plot")
data(World)
tm_shape(World) +
  tm_polygons("HPI")

Maps made in view mode

tmap_mode("view")
data(World)
tm_shape(World) +
  tm_polygons("HPI", id = "iso_a3", popup.vars = TRUE)


r-tmap/tmap documentation built on June 23, 2024, 9:58 a.m.