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 and direction arguments in coord_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:
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: https://github.com/YuLab-SMU/ggtree/blob/879854353e3dc8eb02ddda13c536b94c05250901/R/method-ggplot-add.R#L106-L114
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