-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add label to flow #9
Comments
Thanks for the feedback!
That feature is on my todo list before sending to CRAN. So I will fix it this fall. But I would love to know where on the flow you would like to have the labels.
… On 17 Aug 2021, at 11:59, jpaulitz ***@***.***> wrote:
Thanks for this great package!
While using ggsankey I sometimes would like to add the numbers of objects per flow to the visualization.
If I understand the documentation correctly this is not currently possible with geom_sankey_text, which is used to label the nodes only.
I am currently trying out some hacky ways to label the flows, but any pointers would be appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#9>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKQYRQMJ4DALA6PYJF57ETLT5IXJTANCNFSM5CJQDQEA>.
|
Great that you are working on that option! I think there are 3 reasonable possibilities for the labels: Directly behind the source node, directly before the end node or in the middle of two nodes. I think the first two options will usually be most reasonable since these areas tend to be more homogeneous and not as messy as the midpoint between two nodes where the flows cross each other. The best option for me would be directly behind the source node in the middle (y-direction) of the flow. |
Thanks much for this fantastic package, @davidsjoberg. I'm wondering if you've had a chance to build in this ^ functionality yet; I'm considering MacGyver-ing the code, but figured I'd check in before I do! |
Hello @davidsjoberg thank you for this nice package. I have the same need of labeling the flows, I tried to retrieve the flow positions from the figure layers and add corresponding labels to them, but not succeed yet ... |
I come back here to answer my own question, and here is a solution to add flow size to each flow:
It's not a very elegant solution, but it works for me. |
hello @davidsjoberg wondering if you have been able to build this enhancement? I did try @feizheng0209 workaround but as they mentioned, it's not very elegant. |
Thanks for this great package!
While using ggsankey I sometimes would like to add the numbers of objects per flow to the visualization.
If I understand the documentation correctly this is not currently possible with
geom_sankey_text
, which is used to label the nodes only.I am currently trying out some hacky ways to label the flows, but any pointers would be appreciated!
The text was updated successfully, but these errors were encountered: