I'm trying to do a map using library tmap
and this dataset.
Following this discussion, I'm using the following simple code:
library(tmap)
library(geobr)
library(sf)
rg = st_as_sf(polygons_regioes_adm_sp)
tm_shape(rg) +
tm_polygons("regiao_administrativa",
legend.show = F) +
tm_text("regiao_administrativa", size = 1/2)
That yields the following map with overlapping DUPLICATE text. I tried insert remove.overlap = TRUE
inside tm_text
but this doesn't worked better.
Furthermore i'm getting the following message:
old-style crs object detected; please recreate object with a recent sf::st_crs()
In this context, How I get a map without duplicate text ?