I'm working on a map with tmap and i'm having some trouble changing labels in view mode as in here.
I'm trying to change it to cities names column using name
argument like:
tm_shape(mymap, name = "city_name") +
tm_polygons("Inad", palette = "Reds", title = "")
but it keeps showing the first column as label, which is cities codes (320120 for example).
Is name
the right argument to accomplish so?