r-tmap / r-tmap/tmap

Geom_text_repel equivalent in tmap

Open
#337 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Text
Dominant language
R
Stars
907
Forks
123
PR merge metrics
No merged PRs in 30d

Description

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
](url)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing tmap's existing label-placement functionality and the linked ggrepel issue #89. Determine whether external labels with leader lines are already supported; done would be a documented answer or a clearly scoped feature proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.