-
Notifications
You must be signed in to change notification settings - Fork 174
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
geom_tiplab2()
is broken with custom coord_polar()
settings
#638
Comments
Note that I discovered this after an issue was raised for my deeptime package: willgearty/deeptime#72 |
Ah, that's an excellent function to know about, thanks! Any way we could get it to work with |
I've developed a new geom that works with all coordinate systems: https://williamgearty.com/deeptime/dev/reference/geom_text_phylo.html |
My understanding is that specifying
ggtree(..., layout="circular")
is essentially the same as this:Created on 2024-10-24 with reprex v2.1.1
Based on the code here:
ggtree/R/method-ggplot-add.R
Lines 106 to 114 in 8798543
However, this hardcodes the starting and ending points of the phylogeny, which I would prefer to have on the left. So I've been playing around with changing the
start
anddirection
arguments incoord_polar()
, which seems to work fine, until you try to add tip labels. For any values other than the defaults,geom_tiplab2()
breaks. Here are some interesting examples:Created on 2024-10-24 with reprex v2.1.1
Created on 2024-10-24 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: