Implement gradient line colors/alpha values (e.g. for OD data)
Nobody has claimed this yet.
- 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.

Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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