--
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/1cd7d96f-e58e-430f-ab1a-dc748e906fa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
see https://guangchuangyu.github.io/ggtree/faq/#formatting-tip-labels and you need to follow the guide and provide a reproducible example if it is not working.
On Fri, Jul 14, 2017 at 7:56 AM, <bena...@gmail.com> wrote:
Hello, am having trouble italicizing the tip labels. The examples in the FAQ are only for a singe tip at a time, and I keep getting error messages when I try and apply it to all the tips.
First I attach a data.frame called names_frame with the column named aligned that holds the alternative names. The following works:
ggtree(tree) %<+% names_frame + geom_tiplab(aes(label=aligned))
But how do I make it italic? If I try the following using the format of https://guangchuangyu.github.io/ggtree/faq/#inherit-aes it does not. I think it is because it cannot read aligned as a object since it is inside quotes, but I do not know how to get around that.
ggtree(tree) %<+% names_frame + geom_tiplab(aes(label='italic(aligned)'), parse=TRUE)
How do I make all the tips in a tree italicized, not just one?
- Thanks
--
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/1cd7d96f-e58e-430f-ab1a-dc748e906fa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
see https://guangchuangyu.github.io/ggtree/faq/#formatting-tip-labels and you need to follow the guide and provide a reproducible example if it is not working.
On Fri, Jul 14, 2017 at 7:56 AM, <bena...@gmail.com> wrote:
Hello, am having trouble italicizing the tip labels. The examples in the FAQ are only for a singe tip at a time, and I keep getting error messages when I try and apply it to all the tips.
First I attach a data.frame called names_frame with the column named aligned that holds the alternative names. The following works:
ggtree(tree) %<+% names_frame + geom_tiplab(aes(label=aligned))
But how do I make it italic? If I try the following using the format of https://guangchuangyu.github.io/ggtree/faq/#inherit-aes it does not. I think it is because it cannot read aligned as a object since it is inside quotes, but I do not know how to get around that.
ggtree(tree) %<+% names_frame + geom_tiplab(aes(label='italic(aligned)'), parse=TRUE)
How do I make all the tips in a tree italicized, not just one?
- Thanks
--
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/1cd7d96f-e58e-430f-ab1a-dc748e906fa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
treeplot +
geom_tiplab(aes(label=paste0('italic(', label, ')~italic(', alternate_names, ')')),
parse=TRUE)
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/51aaf2de-a024-4b25-aec1-f9cd8b7d3843%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/51aaf2de-a024-4b25-aec1-f9cd8b7d3843%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/51aaf2de-a024-4b25-aec1-f9cd8b7d3843%40googlegroups.com.