2

I am trying to create a legend in Tmap that has text on both sides of the color classifications, as shown here:

Desired legend

Minimal working example:

library(tmap)
data("World")
    
tm_shape(World) + tm_polygons("HPI")

Produces the standard legend with text only on the RHS:

enter image description here

Looking through TMAP documentation, there is no direct solution to solve this problem.

Any help/suggestion from the community would be welcomed.

Jan
  • 4,974
  • 3
  • 26
  • 43
micx274
  • 33
  • 4

0 Answers0