r-tmap / r-tmap/tmap

Implement gradient line colors/alpha values (e.g. for OD data)

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

Nobody has claimed this yet.

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

Description

I am using tmap mainly to map spatial networks and here are a series of issues that I raised for this purpose (#504 #505). I have not been able to indicate line directionality in tmap arguments. What I am hoping for is a function like guide_edge_direction in ggraph so that the alpha of the edges can be modified to reflect directionality.

Can this be implemented? Is there a work-around in tmap?

Here is an example of edge directionality.
image

Thanks!

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 line-styling arguments and the linked ggraph guide_edge_direction reference. Determine how tmap currently represents edge directionality and whether gradient line colors or alpha values can express it for OD data; done means a documented, usable way to map directionality.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.