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
Suggestion: Point labels outside of plot with leaders #64
Comments
This can be done "manually", with a little work. You'll need a few functions:
You can then use the standard Hope that helps – let me know if a more detailed walk-through would be helpful.
|
P {margin-top:0;margin-bottom:0;}
Hi Martin,
Thank you for your reply.
I should be able to manage this with the listed functions.
Thanks,
Dani
From: Martin R. Smith ***@***.***>
Sent: Tuesday, January 17, 2023 11:45 AM
To: ms609/Ternary ***@***.***>
Cc: Danielle Montocchio ***@***.***>; Author ***@***.***>
Subject: Re: [ms609/Ternary] Suggestion: Point labels outside of plot with leaders (Issue #64)
This can be done "manually", with a little work. You'll need a few functions:
TernaryToXY() will give the Cartesian coordinates of the points you wish to annotateTernaryXRange() will give the X coordinates of the edges of the plot (likewise for Y)
You can then use the standard line() and
text() to add the text where it is desired.
Hope that helps – let me know if a more detailed walk-through would be helpful.
Martin
—
Reply to this email directly,
view it on GitHub, or
unsubscribe.
You are receiving this because you authored the thread.Message
ID: ***@***.***>
|
Hi Martin, |
Hi @dan-montocc your figure looks great. Can you please point me in the direction of the functions to generate ticks against points and the labels color separated? Also, is there an ggrepel equivalent for keeping the labels separate? Many thanks. |
I should hopefully have time to assemble a worked example next week... watch this space! |
I suspect that the missing instruction was that you need to You can now find a full worked example at |
Hi Martin,
I was wondering if it is possible to add labels to ternary plot points but with leaders so the labels are outside of the plot (I have attached an example image of what I mean).
The text was updated successfully, but these errors were encountered: