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
Created with Raphaël @@VERSIONItaly map020406080100

An other example, with some options:

Created with Raphaël @@VERSIONAfrica map0%10%20%30%40%50%60%70%80%90%100%