Closed Zilong-Li closed 2 years ago
The line in legend of my plot looks strange when I added +geom_tiplab(). Do you have any idea about it?
+geom_tiplab()
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)
you can use geom_tiplab(show.legend=FALSE) to mask the legend of text layer.
@xiangpin Many thanks! it works. You are fast 😉
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)