I am trying to make a map with the cool tmap
package and I cannot figure it out how to adjust the legend frame line width. I checked the impressive list of tm_layout
arguments, but the closest I found was frame.lwd
However,that refers to the frame of the map. I took the guess with legend.frame.lwd
but that is not defined. Here is a toy example:
library(tmap)
data(Europe)
tm_shape(Europe) +
tm_polygons("well_being", textNA="Non-European countries", title="Well-Being Index") +
tm_text("iso_a3", size="AREA", root=5) +
tm_layout(legend.position = c("RIGHT","TOP"),
legend.frame = TRUE,
frame.lwd = 5) # legend.frame.lwd does not exist