Skip to contents

These layers are only available in "mapbox" mode:

tmap_mode("mapbox")
#>  tmap modes "plot" -> "view" -> "mapbox" -> "maplibre"
#>  rotate with `tmap::rtm()`switch to "plot" with `tmap::ttm()`

Let’s create a choropleth of the Netherlands

tm = tm_shape(NLD_dist) + 
    tm_polygons(lwd = 0.5, fill = "income_high", fill.scale = tm_scale_continuous(values = "-pu_gn")) +
    tm_shape(NLD_muni) +
    tm_borders(col = "black") +
    tm_mapbox(pitch = 65)
tm + tm_rain()
tm + tm_snow()
tmap maplibre mode
tmap maplibre mode