YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/contribution-tree-data/
839 stars 172 forks source link

ggtree+groupOTU legend's issue #455

Closed Zilong-Li closed 2 years ago

Zilong-Li commented 2 years ago

The line in legend of my plot looks strange when I added +geom_tiplab(). Do you have any idea about it?

t2 <- tree %>% ggtree(layout = "circular", branch.length = "none") %>% groupOTU(lpps, "Pops") + aes(color = Pops) + scale_color_manual(values = mycol) + theme(legend.position = "right") + geom_tiplab(size = 3)

xiangpin commented 2 years ago

you can use geom_tiplab(show.legend=FALSE) to mask the legend of text layer.

Zilong-Li commented 2 years ago

@xiangpin Many thanks! it works. You are fast 😉