Is there a geom_text_repel equivalent in tmap? I just created the attached map in R with labels resized by the area of the polygons but the names of two polygons are missing because their areas are too small. I would like to create a line segment from the two polygons that points to their names outside the map. Something similar to what was described in this link for ggplot >>> https://github.com/slowkow/ggrepel/issues/89
Does tmap have the functionality to accomplish that? I will appreciate your response.
[BF_LLIN_8_5_19.pdf](https://github.com/mtennekes/tmap/files/3481200/BF_LLIN_8_5_19.pdf)
Thanks for your question.
Not yet, but it would be a nice feature to have. tm_text already has a xmod and ymod argument, which could be used to nudge the text labels. Maybe we need another argument like connection.line which draws a line between the original location of the label and the actual location.
I would love this. I have started a new R project to try to hack out a solution but would be delighted if somebody more skilled beat me to it!
Most helpful comment
Thanks for your question.
Not yet, but it would be a nice feature to have.
tm_textalready has axmodandymodargument, which could be used to nudge the text labels. Maybe we need another argument likeconnection.linewhich draws a line between the original location of the label and the actual location.