Open FelixErnst opened 3 years ago
If you use circular
layout, you can specify horizontal=FALSE
and angle="auto"
to show the labels. You can refer the following codes.
library(ggtree)
library(ape)
library(patchwork)
set.seed(1024)
x <- rtree(20)
p <- ggtree(x, layout="circular") +
geom_tiplab(mapping = aes(label = label))
p1 <- p +
geom_cladelab(mapping = aes(subset = TRUE, node = node, label = label),
offset.text = 1.5,
barcolor = NA)
p2 <- p +
geom_cladelab(mapping = aes(subset = TRUE, node = node, label = label),
offset.text = 1.5,
barcolor = NA,
horizontal=FALSE)
p3 <- p +
geom_cladelab(mapping = aes(subset = TRUE, node = node, label = label),
offset.text = 1.5,
barcolor = NA,
horizontal=FALSE,
angle = "auto")
Thanks for your answer. However, the issue remains. When using angle = "auto"
and horizontal = TRUE
the left hand site labels are shown upside down.
I know, that this problem is eleviated by setting horizontal = FALSE
, but in combination with rotate the orientation will end up wrong. See my second and third image.
orient_option.patch.txt at least for tips, I think that a patch like the one provided could help
Hi,
I have a problem plotting clade labels. They seem to oriented inverted, if I plot them using
angle = "auto"
The default plot looks good.
The clade labels are not oriented correctly. Sometimes they are correct and sometimes they are inverted.
In addition, the labels of clades are not adjusted, when using
rotate_tree
. The move around correctly, but the orientation is not changed.Also here, I would like to ask for advice and/or any tips. Thank you!