you can set x
and y
positions manually in geom_treescale
. Besides, using +theme_grey()
is useful if you have no idea of the coordination.
set.seed(20180224)
x = rtree(30)
ggtree(x, layout='unrooted') -> p
p + ggplot2::theme_grey() + geom_treescale(x=7, y=-5.5, offset=.1)
I am trying to add a scale to an unrooted tree with geom_treescale, but when I use it, the tree completely collapses and I am not able to set anything that fix it. Anybody has any idea on how to do it ?
--
G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data, Methods in Ecology and Evolution, 2017, 8(1):28-36. doi:10.1111/2041-210X.12628
Homepage: https://guangchuangyu.github.io/ggtree
---
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree+unsubscribe@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/9d69f444-94cf-42df-8382-bca2962b08c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
you can set
x
andy
positions manually ingeom_treescale
. Besides, using+theme_grey()
is useful if you have no idea of the coordination.set.seed(20180224) x = rtree(30) ggtree(x, layout='unrooted') -> p p + ggplot2::theme_grey() + geom_treescale(x=7, y=-5.5, offset=.1)
On Wed, Feb 21, 2018 at 5:41 PM, Miguel Morard Pedrouzo <miguel...@gmail.com> wrote:I am trying to add a scale to an unrooted tree with geom_treescale, but when I use it, the tree completely collapses and I am not able to set anything that fix it. Anybody has any idea on how to do it ?
--
G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data, Methods in Ecology and Evolution, 2017, 8(1):28-36. doi:10.1111/2041-210X.12628
Homepage: https://guangchuangyu.github.io/ggtree
---
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree...@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/9d69f444-94cf-42df-8382-bca2962b08c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.