tmap icon indicating copy to clipboard operation
tmap copied to clipboard

The legend frame cannot be disabled in tmap_options nor tm_layout

Open Nowosad opened this issue 1 month ago • 0 comments

library(tmap)

# does not work
tmap_options(legend.frame = FALSE)
tm_shape(World) +
  tm_polygons(fill = "HPI")


# does not work
tm_shape(World) +
  tm_polygons(fill = "HPI") +
  tm_layout(legend.frame = FALSE)


# works
tm_shape(World) +
  tm_polygons(fill = "HPI",
              fill.legend = tm_legend(frame = FALSE))

Nowosad avatar Dec 03 '25 13:12 Nowosad