Skip to contents

Enable "maplibre" mode

tmap_mode("maplibre")
#>  tmap mode set to "maplibre".

Example

tm_shape(World) + 
  tm_polygons("well_being",
    fill.scale = tm_scale_continuous(values = "pu_gn"))

Basemaps

Mapbox offers several basemap providers, namely:

tmap_providers()
#> [1] "voyager"     "positron"    "dark-matter"
tm_shape(metro) + 
  tm_dots(size = "pop2020", fill = "red")+
tm_basemap("positron")
#> No legends available in mode "maplibre" for map variables
#> "size"