I am trying to make a simple map with R and tmap, everything works well but I can't fully customize the legend. I have used legend.format = list(text.separator = "-")
to change the text from, say "40 to 60" to "40 - 60" (i want my map legend in french so i had to drop the "to"). How can I fully customize it to display, say "De 40 à 80 k€" instead of "40 - 60" ?. Here is my code :
tm_fill("EBE", title = "EBE (k€)", style = "fixed",
breaks = c(40,60,80,100,110))+
tm_borders() +
tm_layout("EBE moyen par région",
legend.title.size = 1,
legend.text.size = 0.6,
legend.position = c("left","bottom"),
legend.format = list(text.separator = "-"),
#legend.bg.color = "white",
legend.bg.alpha = 1)
Here is my map :
Thanks in advance.