tmap
tmap copied to clipboard
The legend frame cannot be disabled in tmap_options nor tm_layout
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))
