library(tuichartr)
library(rnaturalearth)

You can make continuous maps with tuichartr and tuimaps function. It works with sf objects, we’ll use package rnaturalearth to retrieves shapes.

Mapping for require 3 aesthetics:

  • code: a unique identifiers for polygons
  • label: a label for the polygon, this is the name that will be displayed on tooltip.
  • value: a numeric variable to color the polygons

An other example, with some options: