... | ... |
@@ -43,4 +43,4 @@ BugReports: https://github.com/GuangchuangYu/ggtree/issues |
43 | 43 |
Packaged: 2014-12-03 08:16:14 UTC; root |
44 | 44 |
biocViews: Alignment, Annotation, Clustering, DataImport, |
45 | 45 |
MultipleSequenceAlignment, ReproducibleResearch, Software, Visualization |
46 |
-RoxygenNote: 5.0.1 |
|
46 |
+RoxygenNote: 6.0.1 |
... | ... |
@@ -4,9 +4,9 @@ ggtree: an R package for visualization and annotation of phylogenetic trees with |
4 | 4 |
|
5 | 5 |
<img src="https://raw.githubusercontent.com/Bioconductor/BiocStickers/master/ggtree/ggtree.png" height="200" align="right" /> |
6 | 6 |
|
7 |
-[](https://bioconductor.org/packages/ggtree) [](https://github.com/guangchuangyu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
7 |
+[](https://bioconductor.org/packages/ggtree) [](https://github.com/guangchuangyu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
8 | 8 |
|
9 |
-[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
9 |
+[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
10 | 10 |
|
11 | 11 |
[](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#archives) [](https://bioconductor.org/checkResults/devel/bioc-LATEST/ggtree/) [](https://travis-ci.org/GuangchuangYu/ggtree) [](https://ci.appveyor.com/project/GuangchuangYu/ggtree) [](#backers) [](#sponsors) |
12 | 12 |
|
... | ... |
@@ -27,26 +27,26 @@ Please cite the following article when using `ggtree`: |
27 | 27 |
|
28 | 28 |
**G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. 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. |
29 | 29 |
|
30 |
-[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://www.altmetric.com/details/10533079) |
|
30 |
+[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://www.altmetric.com/details/10533079) |
|
31 | 31 |
|
32 | 32 |
------------------------------------------------------------------------ |
33 | 33 |
|
34 | 34 |
### Citation |
35 | 35 |
|
36 |
-[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
36 |
+[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
37 | 37 |
|
38 | 38 |
<img src="docs/citation.png" width="890"/> |
39 | 39 |
|
40 | 40 |
### Download stats |
41 | 41 |
|
42 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
42 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
43 | 43 |
|
44 | 44 |
<img src="docs/dlstats.png" width="890"/> |
45 | 45 |
|
46 | 46 |
Contributors |
47 | 47 |
------------ |
48 | 48 |
|
49 |
-This project exists thanks to all the people who contribute. [\[Contribute\]](CONTRIBUTING.md). <a href="graphs/contributors"><img src="https://opencollective.com/ggtree/contributors.svg?width=890" /></a> |
|
49 |
+This project exists thanks to all the people who contribute. [\[Contribute\]](CONTRIBUTING.md). <a href="https://github.com/GuangchuangYu/ggtree/graphs/contributors"><img src="https://opencollective.com/ggtree/contributors.svg?width=890" /></a> |
|
50 | 50 |
|
51 | 51 |
Backers |
52 | 52 |
------- |
... | ... |
@@ -300,6 +300,11 @@ accession number and we want to display species name in <em>italic</em>, we can |
300 | 300 |
use command like this:</p> |
301 | 301 |
<pre><code>ggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic("species name"), "accession number")', parse=T) |
302 | 302 |
</code></pre> |
303 |
+<p>Another example for formating all tip labels:</p> |
|
304 |
+<pre><code>ggtree(rtree(30)) + geom_tiplab(aes(label=paste0('bold(', label, ')~italic(', node, ')')), parse=TRUE) |
|
305 |
+</code></pre> |
|
306 |
+<p>see also |
|
307 |
+<a href="https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM">https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM</a>.</p> |
|
303 | 308 |
<h2 id="avoid-overlapping-text-labels"><i class="fa fa-angle-double-right"></i> Avoid overlapping text labels</h2> |
304 | 309 |
<p>User can use <a href="https://cran.r-project.org/web/packages/ggrepel/">ggrepel</a> |
305 | 310 |
package to repel overlapping text labels.</p> |
... | ... |
@@ -220,7 +220,7 @@ |
220 | 220 |
<p><link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css"></p> |
221 | 221 |
<p><a href="https://github.com/GuangchuangYu/featured_img">Let us know</a> if you have |
222 | 222 |
published using <code>ggtree</code> and your publication will be featured here.</p> |
223 |
-<p><a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-22-blue.svg?style=flat" /></a></p> |
|
223 |
+<p><a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-26-blue.svg?style=flat" /></a></p> |
|
224 | 224 |
<p><link rel='stylesheet' href=https://guangchuangyu.github.io/resume/css/morris.css> |
225 | 225 |
<script src='https://guangchuangyu.github.io/resume/css/jquery.min.js' type='text/javascript'></script> |
226 | 226 |
<script src='https://guangchuangyu.github.io/resume/css/raphael-min.js' type='text/javascript'></script> |
... | ... |
@@ -234,12 +234,12 @@ published using <code>ggtree</code> and your publication will be featured here.< |
234 | 234 |
height: 300px; |
235 | 235 |
}<br /> |
236 | 236 |
</style> |
237 |
-<div id="chart11855a166b40" class="rChart morris"></p> |
|
237 |
+<div id="chart90c7785d73f" class="rChart morris"></p> |
|
238 | 238 |
</div> |
239 | 239 |
|
240 | 240 |
<script type='text/javascript'> |
241 | 241 |
var chartParams = { |
242 |
- "element": "chart11855a166b40", |
|
242 |
+ "element": "chart90c7785d73f", |
|
243 | 243 |
"width": 800, |
244 | 244 |
"height": 400, |
245 | 245 |
"xkey": "year", |
... | ... |
@@ -254,11 +254,11 @@ published using <code>ggtree</code> and your publication will be featured here.< |
254 | 254 |
}, |
255 | 255 |
{ |
256 | 256 |
"year": 2017, |
257 |
-"cites": 21, |
|
257 |
+"cites": 25, |
|
258 | 258 |
"pubid": "HtEfBTGE9r8C" |
259 | 259 |
} |
260 | 260 |
], |
261 |
-"id": "chart11855a166b40", |
|
261 |
+"id": "chart90c7785d73f", |
|
262 | 262 |
"labels": "cites" |
263 | 263 |
}, |
264 | 264 |
chartType = "Bar" |
... | ... |
@@ -218,7 +218,7 @@ |
218 | 218 |
<!-- AddToAny END --> |
219 | 219 |
|
220 | 220 |
<p><link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css"></p> |
221 |
-<p><a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-22-blue.svg?style=flat" /></a></p> |
|
221 |
+<p><a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-26-blue.svg?style=flat" /></a></p> |
|
222 | 222 |
<!-- citation:=HtEfBTGE9r8C:=7268358477862164627 --> |
223 | 223 |
|
224 | 224 |
<h2 id="journal-articles"><i class="fa fa-mortar-board"></i> Journal Articles</h2> |
... | ... |
@@ -233,9 +233,9 @@ |
233 | 233 |
<p><link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css"> |
234 | 234 |
<link rel="stylesheet" href="https://guangchuangyu.github.io/css/academicons.min.css"></p> |
235 | 235 |
<p><a href="https://bioconductor.org/packages/ggtree"><img alt="" src="https://img.shields.io/badge/release%20version-1.8.1-blue.svg?style=flat" /></a> |
236 |
-<a href="https://github.com/guangchuangyu/ggtree"><img alt="" src="https://img.shields.io/badge/devel%20version-1.9.1-blue.svg?style=flat" /></a> |
|
237 |
-<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="" src="https://img.shields.io/badge/download-16674/total-blue.svg?style=flat" /></a> |
|
238 |
-<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="" src="https://img.shields.io/badge/download-1117/month-blue.svg?style=flat" /></a></p> |
|
236 |
+<a href="https://github.com/guangchuangyu/ggtree"><img alt="" src="https://img.shields.io/badge/devel%20version-1.9.2-blue.svg?style=flat" /></a> |
|
237 |
+<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="" src="https://img.shields.io/badge/download-17163/total-blue.svg?style=flat" /></a> |
|
238 |
+<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="" src="https://img.shields.io/badge/download-885/month-blue.svg?style=flat" /></a></p> |
|
239 | 239 |
<p>The <code>ggtree</code> package extending the <em>ggplot2</em> package. It based on |
240 | 240 |
grammar of graphics and takes all the good parts of <em>ggplot2</em>. <em>ggtree</em> |
241 | 241 |
is designed for not only viewing phylogenetic tree but also displaying |
... | ... |
@@ -256,8 +256,8 @@ University of Hong Kong.</p> |
256 | 256 |
<h2 id="citation"><i class="fa fa-book"></i> Citation</h2> |
257 | 257 |
<p>Please cite the following article when using <code>ggtree</code>:</p> |
258 | 258 |
<p><a href="http://dx.doi.org/10.1111/2041-210X.12628"><img alt="" src="https://img.shields.io/badge/doi-10.1111/2041--210X.12628-blue.svg?style=flat" /></a> |
259 |
-<a href="https://www.altmetric.com/details/10533079"><img alt="" src="https://img.shields.io/badge/Altmetric-345-blue.svg?style=flat" /></a> |
|
260 |
-<a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-22-blue.svg?style=flat" /></a></p> |
|
259 |
+<a href="https://www.altmetric.com/details/10533079"><img alt="" src="https://img.shields.io/badge/Altmetric-349-blue.svg?style=flat" /></a> |
|
260 |
+<a href="https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-26-blue.svg?style=flat" /></a></p> |
|
261 | 261 |
<p><strong>G Yu</strong>, DK Smith, H Zhu, Y Guan, TTY Lam<sup>*</sup>. ggtree: an R |
262 | 262 |
package for visualization and annotation of phylogenetic trees with |
263 | 263 |
their covariates and other associated data. <strong><em>Methods in Ecology and |
... | ... |
@@ -147,7 +147,7 @@ |
147 | 147 |
}, |
148 | 148 |
{ |
149 | 149 |
"location": "/faq/", |
150 |
- "text": "Installation\n\n\n Could not find function\n\n\nIf you got \nthis\nerror\n, please make\nsure you are using the latest R and \nggtree\n.\n\n\nPackages in Bioconductor, like \nggtree\n, have different release policy\ncompare to CRAN. There are two branches, release and devel, in parallel.\nRelease branch is more stable and only document improvement and bug\nfixes will commit to it. New functions will only commit to \ndevel\n\nbranch.\n\n\nSometimes I may write blog post to introduce new functions which is not\navailable in \nrelease\n branch, you need to install the \ndevel\n version\nof \nggtree\n in order to use these new functions.\n\n\nYou can download the \ndevel\n version of \nggtree\n from\n\nhttp://bioconductor.org/packages/devel/bioc/html/ggtree.html\n and\ninstall it, or install the github version of \nggtree\n.\n\n\nThis also applied to other of my packages, including \nGOSemSim\n, \nDOSE\n,\n\nclusterProfiler\n, \nReactomePA\n and \nChIPseeker\n. If you got the\n\ncould not find function\n error, upgrade your installation to latest\nrelease. If the error still exists after upgrading to latest release,\nyou need to install the devel version.\n\n\n Text \n Label\n\n\n Tip label truncated\n\n\nggplot2 can't auto adjust xlim based on added text.\n\n\nlibrary(ggtree)\n## example tree from https://support.bioconductor.org/p/72398/\ntree\n-read.tree(text=\n(Organism1.006G249400.1:0.03977,(Organism2.022118m:0.01337,(Organism3.J34265.1:0.00284,Organism4.G02633.1:0.00468)0.51:0.0104):0.02469);\n)\nggtree(tree) + geom_tiplab()\n\n\n\n\nThis is because the units are in two different spaces (data and pixel).\nUsers can use xlim to allocate more space for tip label.\n\n\nggtree(tree) + geom_tiplab() + xlim(0, 0.06)\n\n\n\n\n Modify (tip) labels\n\n\nThis could be easily done via the \n%\n+%\n operator to attach the modified\nversion of the labels and than use \ngeom_tiplab\n to display the modified\nversion.\n\n\nraxml_file \n- system.file(\"extdata/RAxML\", \"RAxML_bipartitionsBranchLabels.H3\", package=\"ggtree\")\nraxml \n- read.raxml(raxml_file)\n\nlb = get.tree(raxml)$tip.label\nd = data.frame(label=lb, label2 = paste(\"AA\", substring(lb, 1, 5)))\nggtree(raxml) %\n+% d + geom_tiplab(aes(label=label2))\n\n\n\nsee also\n\n1\n\nand \n2\n.\n\n\n Formatting (tip) labels\n\n\nIf you want to format labels, you need to set \nparse=TRUE\n in\n\ngeom_text\n/\ngeom_tiplab\n and the \nlabel\n should be string that can be\nparsed into expression and displayed as described in \n?plotmath\n.\n\n\nFor example, the tiplabels contains two parts, species name and\naccession number and we want to display species name in \nitalic\n, we can\nuse command like this:\n\n\nggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic(\"species name\"), \"accession number\")', parse=T)\n\n\n\n Avoid overlapping text labels\n\n\nUser can use \nggrepel\n\npackage to repel overlapping text labels.\n\n\nFor example:\n\n\nlibrary(ggrepel)\nlibrary(ggtree)\nraxml_file \n- system.file(\nextdata/RAxML\n, \nRAxML_bipartitionsBranchLabels.H3\n, package=\nggtree\n)\nraxml \n- read.raxml(raxml_file)\nggtree(raxml) + geom_label_repel(aes(label=bootstrap, fill=bootstrap))\n\n\n\n\nFor details, please refer to \nggrepel usage\nexamples\n.\n\n\n bootstrap values from newick format\n\n\nIt's quite command to store \nbootstrap\n value as node label in \nnewick\n\nformat. Visualizing node label is easy using\n\ngeom_text2(aes(subset = !isTip, label=label))\n.\n\n\nIf you want to only display a subset of \nbootstrap\n (e.g. bootstrap \n\n80), you can't simply using\n\ngeom_text2(subset= (label \n 80), label=label)\n since \nlabel\n is a\ncharacter vector, which contains node label (bootstrap value) and tip\nlabel (taxa name). If we use\n\ngeom_text2(subset=(as.numeric(label) \n 80), label=label)\n, it will also\nfail since \nNAs\n were introduced by coercion. We need to convert \nNAs\n\nto logical \nFALSE\n, this can be done by the following code:\n\n\nnwk \n- system.file(\nextdata/RAxML\n,\nRAxML_bipartitions.H3\n, package='ggtree')\ntr \n- read.tree(nwk)\nggtree(tr) + geom_text2(aes(label=label, subset = !is.na(as.numeric(label)) \n as.numeric(label) \n 80))\n\n\n\n\nAnother solution is converting the bootstrap value outside \nggtree\n as I\nrecommended in \ngoogle\ngroup\n.\n\n\nq \n- ggtree(tr)\nd \n- q$data\nd \n- d[!d$isTip,]\nd$label \n- as.numeric(d$label)\nd \n- d[d$label \n 80,]\n\nq + geom_text(data=d, aes(label=label))\n\n\n\n\n \naesthetic\n mapping\n\n\n inherit \naes\n\n\nggtree(rtree(30)) + geom_point()\n\n\n\n\nFor example, we can add symbolic points to nodes with \ngeom_point()\n\ndirectly. The magic here is we don't need to map \nx\n and \ny\n position of\nthe points by providing \naes(x, y)\n to \ngeom_point()\n since it was\nalready mapped by \nggtree\n function and it serves as a global mapping\nfor all layers.\n\n\nBut what if we provide a \ndataset\n in a layer and the \ndataset\n doesn't\ncontain column of \nx\n and/or \ny\n, the layer function also try to map \nx\n\nand \ny\n and also others if you map them in \nggtree\n function. As these\nvariable is not available in your \ndataset\n, you will get the following\nerror:\n\n\nError in eval(expr, envir, enclos) : object 'x' not found\n\n\n\nThis can be fixed by using parameter \ninherit.aes=FALSE\n which will\ndisable inheriting mapping from \nggtree\n function.\n\n\n use \n$\n in aes\n\n\nNEVER DO THIS.\n\n\nsee the explaination in the \nggplot2 book\n2ed\n:\n\n\n\n\nNever refer to a variable with \n$\n (e.g., \ndiamonds$carat\n) in\n\naes()\n. This breaks containment, so that the plot no longer contains\neverything it needs, and causes problems if ggplot2 changes the order\nof the rows, as it does when facetting.\n\n\n\n\nsee also\n\n1\n\nand \n2\n.\n\n\n Annotation\n\n\n colouring edges by user data\n\n\nsee my blog post: \nEdge coloring with user\ndata\n\nand also my answer on\n\nhttps://github.com/GuangchuangYu/ggtree/issues/76\n and\n\nhttps://groups.google.com/forum/#!topic/bioc-ggtree/4GgivKqVjB8\n.", |
|
150 |
+ "text": "Installation\n\n\n Could not find function\n\n\nIf you got \nthis\nerror\n, please make\nsure you are using the latest R and \nggtree\n.\n\n\nPackages in Bioconductor, like \nggtree\n, have different release policy\ncompare to CRAN. There are two branches, release and devel, in parallel.\nRelease branch is more stable and only document improvement and bug\nfixes will commit to it. New functions will only commit to \ndevel\n\nbranch.\n\n\nSometimes I may write blog post to introduce new functions which is not\navailable in \nrelease\n branch, you need to install the \ndevel\n version\nof \nggtree\n in order to use these new functions.\n\n\nYou can download the \ndevel\n version of \nggtree\n from\n\nhttp://bioconductor.org/packages/devel/bioc/html/ggtree.html\n and\ninstall it, or install the github version of \nggtree\n.\n\n\nThis also applied to other of my packages, including \nGOSemSim\n, \nDOSE\n,\n\nclusterProfiler\n, \nReactomePA\n and \nChIPseeker\n. If you got the\n\ncould not find function\n error, upgrade your installation to latest\nrelease. If the error still exists after upgrading to latest release,\nyou need to install the devel version.\n\n\n Text \n Label\n\n\n Tip label truncated\n\n\nggplot2 can't auto adjust xlim based on added text.\n\n\nlibrary(ggtree)\n## example tree from https://support.bioconductor.org/p/72398/\ntree\n-read.tree(text=\n(Organism1.006G249400.1:0.03977,(Organism2.022118m:0.01337,(Organism3.J34265.1:0.00284,Organism4.G02633.1:0.00468)0.51:0.0104):0.02469);\n)\nggtree(tree) + geom_tiplab()\n\n\n\n\nThis is because the units are in two different spaces (data and pixel).\nUsers can use xlim to allocate more space for tip label.\n\n\nggtree(tree) + geom_tiplab() + xlim(0, 0.06)\n\n\n\n\n Modify (tip) labels\n\n\nThis could be easily done via the \n%\n+%\n operator to attach the modified\nversion of the labels and than use \ngeom_tiplab\n to display the modified\nversion.\n\n\nraxml_file \n- system.file(\"extdata/RAxML\", \"RAxML_bipartitionsBranchLabels.H3\", package=\"ggtree\")\nraxml \n- read.raxml(raxml_file)\n\nlb = get.tree(raxml)$tip.label\nd = data.frame(label=lb, label2 = paste(\"AA\", substring(lb, 1, 5)))\nggtree(raxml) %\n+% d + geom_tiplab(aes(label=label2))\n\n\n\nsee also\n\n1\n\nand \n2\n.\n\n\n Formatting (tip) labels\n\n\nIf you want to format labels, you need to set \nparse=TRUE\n in\n\ngeom_text\n/\ngeom_tiplab\n and the \nlabel\n should be string that can be\nparsed into expression and displayed as described in \n?plotmath\n.\n\n\nFor example, the tiplabels contains two parts, species name and\naccession number and we want to display species name in \nitalic\n, we can\nuse command like this:\n\n\nggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic(\"species name\"), \"accession number\")', parse=T)\n\n\n\nAnother example for formating all tip labels:\n\n\nggtree(rtree(30)) + geom_tiplab(aes(label=paste0('bold(', label, ')~italic(', node, ')')), parse=TRUE)\n\n\n\nsee also\n\nhttps://groups.google.com/forum/?utm_medium=email\nutm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM\n.\n\n\n Avoid overlapping text labels\n\n\nUser can use \nggrepel\n\npackage to repel overlapping text labels.\n\n\nFor example:\n\n\nlibrary(ggrepel)\nlibrary(ggtree)\nraxml_file \n- system.file(\nextdata/RAxML\n, \nRAxML_bipartitionsBranchLabels.H3\n, package=\nggtree\n)\nraxml \n- read.raxml(raxml_file)\nggtree(raxml) + geom_label_repel(aes(label=bootstrap, fill=bootstrap))\n\n\n\n\nFor details, please refer to \nggrepel usage\nexamples\n.\n\n\n bootstrap values from newick format\n\n\nIt's quite command to store \nbootstrap\n value as node label in \nnewick\n\nformat. Visualizing node label is easy using\n\ngeom_text2(aes(subset = !isTip, label=label))\n.\n\n\nIf you want to only display a subset of \nbootstrap\n (e.g. bootstrap \n\n80), you can't simply using\n\ngeom_text2(subset= (label \n 80), label=label)\n since \nlabel\n is a\ncharacter vector, which contains node label (bootstrap value) and tip\nlabel (taxa name). If we use\n\ngeom_text2(subset=(as.numeric(label) \n 80), label=label)\n, it will also\nfail since \nNAs\n were introduced by coercion. We need to convert \nNAs\n\nto logical \nFALSE\n, this can be done by the following code:\n\n\nnwk \n- system.file(\nextdata/RAxML\n,\nRAxML_bipartitions.H3\n, package='ggtree')\ntr \n- read.tree(nwk)\nggtree(tr) + geom_text2(aes(label=label, subset = !is.na(as.numeric(label)) \n as.numeric(label) \n 80))\n\n\n\n\nAnother solution is converting the bootstrap value outside \nggtree\n as I\nrecommended in \ngoogle\ngroup\n.\n\n\nq \n- ggtree(tr)\nd \n- q$data\nd \n- d[!d$isTip,]\nd$label \n- as.numeric(d$label)\nd \n- d[d$label \n 80,]\n\nq + geom_text(data=d, aes(label=label))\n\n\n\n\n \naesthetic\n mapping\n\n\n inherit \naes\n\n\nggtree(rtree(30)) + geom_point()\n\n\n\n\nFor example, we can add symbolic points to nodes with \ngeom_point()\n\ndirectly. The magic here is we don't need to map \nx\n and \ny\n position of\nthe points by providing \naes(x, y)\n to \ngeom_point()\n since it was\nalready mapped by \nggtree\n function and it serves as a global mapping\nfor all layers.\n\n\nBut what if we provide a \ndataset\n in a layer and the \ndataset\n doesn't\ncontain column of \nx\n and/or \ny\n, the layer function also try to map \nx\n\nand \ny\n and also others if you map them in \nggtree\n function. As these\nvariable is not available in your \ndataset\n, you will get the following\nerror:\n\n\nError in eval(expr, envir, enclos) : object 'x' not found\n\n\n\nThis can be fixed by using parameter \ninherit.aes=FALSE\n which will\ndisable inheriting mapping from \nggtree\n function.\n\n\n use \n$\n in aes\n\n\nNEVER DO THIS.\n\n\nsee the explaination in the \nggplot2 book\n2ed\n:\n\n\n\n\nNever refer to a variable with \n$\n (e.g., \ndiamonds$carat\n) in\n\naes()\n. This breaks containment, so that the plot no longer contains\neverything it needs, and causes problems if ggplot2 changes the order\nof the rows, as it does when facetting.\n\n\n\n\nsee also\n\n1\n\nand \n2\n.\n\n\n Annotation\n\n\n colouring edges by user data\n\n\nsee my blog post: \nEdge coloring with user\ndata\n\nand also my answer on\n\nhttps://github.com/GuangchuangYu/ggtree/issues/76\n and\n\nhttps://groups.google.com/forum/#!topic/bioc-ggtree/4GgivKqVjB8\n.", |
|
151 | 151 |
"title": "FAQ" |
152 | 152 |
}, |
153 | 153 |
{ |
... | ... |
@@ -177,7 +177,7 @@ |
177 | 177 |
}, |
178 | 178 |
{ |
179 | 179 |
"location": "/faq/#formatting-tip-labels", |
180 |
- "text": "If you want to format labels, you need to set parse=TRUE in geom_text / geom_tiplab and the label should be string that can be\nparsed into expression and displayed as described in ?plotmath . For example, the tiplabels contains two parts, species name and\naccession number and we want to display species name in italic , we can\nuse command like this: ggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic(\"species name\"), \"accession number\")', parse=T)", |
|
180 |
+ "text": "If you want to format labels, you need to set parse=TRUE in geom_text / geom_tiplab and the label should be string that can be\nparsed into expression and displayed as described in ?plotmath . For example, the tiplabels contains two parts, species name and\naccession number and we want to display species name in italic , we can\nuse command like this: ggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic(\"species name\"), \"accession number\")', parse=T) Another example for formating all tip labels: ggtree(rtree(30)) + geom_tiplab(aes(label=paste0('bold(', label, ')~italic(', node, ')')), parse=TRUE) see also https://groups.google.com/forum/?utm_medium=email utm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM .", |
|
181 | 181 |
"title": " Formatting (tip) labels" |
182 | 182 |
}, |
183 | 183 |
{ |
... | ... |
@@ -217,7 +217,7 @@ |
217 | 217 |
}, |
218 | 218 |
{ |
219 | 219 |
"location": "/featuredArticles/", |
220 |
- "text": "Let us know\n if you have\npublished using \nggtree\n and your publication will be featured here.\n\n\n\n\n\n\n\n\n\n\n\n\n\n .rChart {\n display: block;\n margin-left: auto; \n margin-right: auto;\n width: 800px;\n height: 300px;\n }<br />\n \n\n\n\n\n\n\n\n\n var chartParams = {\n \"element\": \"chart11855a166b40\",\n\"width\": 800,\n\"height\": 400,\n\"xkey\": \"year\",\n\"ykeys\": [\n \"cites\" \n],\n\"data\": [\n {\n \"year\": 2016,\n\"cites\": 1,\n\"pubid\": \"HtEfBTGE9r8C\" \n},\n{\n \"year\": 2017,\n\"cites\": 21,\n\"pubid\": \"HtEfBTGE9r8C\" \n} \n],\n\"id\": \"chart11855a166b40\",\n\"labels\": \"cites\" \n},\n chartType = \"Bar\"\n new Morris[chartType](chartParams)\n\n\n\n\n\n\n\n\n\n\n 2017\n\n\nPhylogenetic analysis of the human antibody repertoire reveals\nquantitative signatures of immune senescence and\naging\n. \nPNAS\n, 2017\n\n\nHorses in Denmark Are a Reservoir of Diverse Clones of\nMethicillin-Resistant and -Susceptible Staphylococcus\naureus\n.\n\nFrontiers in Microbiology\n, 2017, 8:543\n\n\nGut metagenomes of type 2 diabetic patients have characteristic\nsingle-nucleotide polymorphism distribution in \nBacteroides\ncoprocola\n.\n\nMicrobiome\n, 2017, 5:15\n\n\n 2016\n\n\nFunction and Phylogeny of Bacterial Butyryl Coenzyme A:Acetate\nTransferases and Their Diversity in the Proximal Colon of\nSwine\n. \nApplied and\nEnvironmental Microbiology\n. 2016, 82(22):6788-6798.", |
|
220 |
+ "text": "Let us know\n if you have\npublished using \nggtree\n and your publication will be featured here.\n\n\n\n\n\n\n\n\n\n\n\n\n\n .rChart {\n display: block;\n margin-left: auto; \n margin-right: auto;\n width: 800px;\n height: 300px;\n }<br />\n \n\n\n\n\n\n\n\n\n var chartParams = {\n \"element\": \"chart90c7785d73f\",\n\"width\": 800,\n\"height\": 400,\n\"xkey\": \"year\",\n\"ykeys\": [\n \"cites\" \n],\n\"data\": [\n {\n \"year\": 2016,\n\"cites\": 1,\n\"pubid\": \"HtEfBTGE9r8C\" \n},\n{\n \"year\": 2017,\n\"cites\": 25,\n\"pubid\": \"HtEfBTGE9r8C\" \n} \n],\n\"id\": \"chart90c7785d73f\",\n\"labels\": \"cites\" \n},\n chartType = \"Bar\"\n new Morris[chartType](chartParams)\n\n\n\n\n\n\n\n\n\n\n 2017\n\n\nPhylogenetic analysis of the human antibody repertoire reveals\nquantitative signatures of immune senescence and\naging\n. \nPNAS\n, 2017\n\n\nHorses in Denmark Are a Reservoir of Diverse Clones of\nMethicillin-Resistant and -Susceptible Staphylococcus\naureus\n.\n\nFrontiers in Microbiology\n, 2017, 8:543\n\n\nGut metagenomes of type 2 diabetic patients have characteristic\nsingle-nucleotide polymorphism distribution in \nBacteroides\ncoprocola\n.\n\nMicrobiome\n, 2017, 5:15\n\n\n 2016\n\n\nFunction and Phylogeny of Bacterial Butyryl Coenzyme A:Acetate\nTransferases and Their Diversity in the Proximal Colon of\nSwine\n. \nApplied and\nEnvironmental Microbiology\n. 2016, 82(22):6788-6798.", |
|
221 | 221 |
"title": "Featured Articles" |
222 | 222 |
}, |
223 | 223 |
{ |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
|
5 | 5 |
<url> |
6 | 6 |
<loc>https://guangchuangyu.github.io/ggtree/</loc> |
7 |
- <lastmod>2017-06-28</lastmod> |
|
7 |
+ <lastmod>2017-07-17</lastmod> |
|
8 | 8 |
<changefreq>daily</changefreq> |
9 | 9 |
</url> |
10 | 10 |
|
... | ... |
@@ -12,7 +12,7 @@ |
12 | 12 |
|
13 | 13 |
<url> |
14 | 14 |
<loc>https://guangchuangyu.github.io/ggtree/documentation/</loc> |
15 |
- <lastmod>2017-06-28</lastmod> |
|
15 |
+ <lastmod>2017-07-17</lastmod> |
|
16 | 16 |
<changefreq>daily</changefreq> |
17 | 17 |
</url> |
18 | 18 |
|
... | ... |
@@ -20,7 +20,7 @@ |
20 | 20 |
|
21 | 21 |
<url> |
22 | 22 |
<loc>https://guangchuangyu.github.io/ggtree/faq/</loc> |
23 |
- <lastmod>2017-06-28</lastmod> |
|
23 |
+ <lastmod>2017-07-17</lastmod> |
|
24 | 24 |
<changefreq>daily</changefreq> |
25 | 25 |
</url> |
26 | 26 |
|
... | ... |
@@ -28,7 +28,7 @@ |
28 | 28 |
|
29 | 29 |
<url> |
30 | 30 |
<loc>https://guangchuangyu.github.io/ggtree/featuredArticles/</loc> |
31 |
- <lastmod>2017-06-28</lastmod> |
|
31 |
+ <lastmod>2017-07-17</lastmod> |
|
32 | 32 |
<changefreq>daily</changefreq> |
33 | 33 |
</url> |
34 | 34 |
|
... | ... |
@@ -36,7 +36,7 @@ |
36 | 36 |
|
37 | 37 |
<url> |
38 | 38 |
<loc>https://guangchuangyu.github.io/ggtree/gallery/</loc> |
39 |
- <lastmod>2017-06-28</lastmod> |
|
39 |
+ <lastmod>2017-07-17</lastmod> |
|
40 | 40 |
<changefreq>daily</changefreq> |
41 | 41 |
</url> |
42 | 42 |
|
... | ... |
@@ -45,55 +45,55 @@ |
45 | 45 |
|
46 | 46 |
<url> |
47 | 47 |
<loc>https://guangchuangyu.github.io/ggtree/ChIPseeker/</loc> |
48 |
- <lastmod>2017-06-28</lastmod> |
|
48 |
+ <lastmod>2017-07-17</lastmod> |
|
49 | 49 |
<changefreq>daily</changefreq> |
50 | 50 |
</url> |
51 | 51 |
|
52 | 52 |
<url> |
53 | 53 |
<loc>https://guangchuangyu.github.io/ggtree/clusterProfiler/</loc> |
54 |
- <lastmod>2017-06-28</lastmod> |
|
54 |
+ <lastmod>2017-07-17</lastmod> |
|
55 | 55 |
<changefreq>daily</changefreq> |
56 | 56 |
</url> |
57 | 57 |
|
58 | 58 |
<url> |
59 | 59 |
<loc>https://guangchuangyu.github.io/ggtree/DOSE/</loc> |
60 |
- <lastmod>2017-06-28</lastmod> |
|
60 |
+ <lastmod>2017-07-17</lastmod> |
|
61 | 61 |
<changefreq>daily</changefreq> |
62 | 62 |
</url> |
63 | 63 |
|
64 | 64 |
<url> |
65 | 65 |
<loc>https://guangchuangyu.github.io/ggtree/emojifont/</loc> |
66 |
- <lastmod>2017-06-28</lastmod> |
|
66 |
+ <lastmod>2017-07-17</lastmod> |
|
67 | 67 |
<changefreq>daily</changefreq> |
68 | 68 |
</url> |
69 | 69 |
|
70 | 70 |
<url> |
71 | 71 |
<loc>https://guangchuangyu.github.io/ggtree/ggtree/</loc> |
72 |
- <lastmod>2017-06-28</lastmod> |
|
72 |
+ <lastmod>2017-07-17</lastmod> |
|
73 | 73 |
<changefreq>daily</changefreq> |
74 | 74 |
</url> |
75 | 75 |
|
76 | 76 |
<url> |
77 | 77 |
<loc>https://guangchuangyu.github.io/ggtree/GOSemSim/</loc> |
78 |
- <lastmod>2017-06-28</lastmod> |
|
78 |
+ <lastmod>2017-07-17</lastmod> |
|
79 | 79 |
<changefreq>daily</changefreq> |
80 | 80 |
</url> |
81 | 81 |
|
82 | 82 |
<url> |
83 | 83 |
<loc>https://guangchuangyu.github.io/ggtree/meshes/</loc> |
84 |
- <lastmod>2017-06-28</lastmod> |
|
84 |
+ <lastmod>2017-07-17</lastmod> |
|
85 | 85 |
<changefreq>daily</changefreq> |
86 | 86 |
</url> |
87 | 87 |
|
88 | 88 |
<url> |
89 | 89 |
<loc>https://guangchuangyu.github.io/ggtree/ReactomePA/</loc> |
90 |
- <lastmod>2017-06-28</lastmod> |
|
90 |
+ <lastmod>2017-07-17</lastmod> |
|
91 | 91 |
<changefreq>daily</changefreq> |
92 | 92 |
</url> |
93 | 93 |
|
94 | 94 |
<url> |
95 | 95 |
<loc>https://guangchuangyu.github.io/ggtree/treeio/</loc> |
96 |
- <lastmod>2017-06-28</lastmod> |
|
96 |
+ <lastmod>2017-07-17</lastmod> |
|
97 | 97 |
<changefreq>daily</changefreq> |
98 | 98 |
</url> |
99 | 99 |
|
... | ... |
@@ -30,11 +30,10 @@ highlights the two direct descendant clades of an internal node |
30 | 30 |
Particularly useful when studying neighboring clades. Note that balances that |
31 | 31 |
correspond to multichotomies will not be displayed. |
32 | 32 |
} |
33 |
-\author{ |
|
34 |
-Justin Silverman |
|
35 |
-} |
|
36 | 33 |
\references{ |
37 | 34 |
J. Silverman, et al. \emph{A phylogenetic transform enhances |
38 | 35 |
analysis of compositional microbiota data}. (in preparation) |
39 | 36 |
} |
40 |
- |
|
37 |
+\author{ |
|
38 |
+Justin Silverman |
|
39 |
+} |
... | ... |
@@ -18,4 +18,3 @@ named list of subtrees with the root id of subtree and list of node id's making |
18 | 18 |
Get all subtrees of node, as well as remaining branches of parent (ie, rest of tree structure as subtree) |
19 | 19 |
return named list of subtrees with list name as starting node id. |
20 | 20 |
} |
21 |
- |
... | ... |
@@ -3,8 +3,9 @@ |
3 | 3 |
\docType{package} |
4 | 4 |
\name{ggtree} |
5 | 5 |
\alias{ggtree} |
6 |
-\alias{ggtree-package} |
|
7 | 6 |
\alias{package-ggtree} |
7 |
+\alias{ggtree-package} |
|
8 |
+\alias{ggtree} |
|
8 | 9 |
\title{visualizing phylogenetic tree and heterogenous associated data based on grammar of graphics |
9 | 10 |
\code{ggtree} provides functions for visualizing phylogenetic tree and its associated data in R.} |
10 | 11 |
\usage{ |
... | ... |
@@ -57,4 +58,3 @@ ggtree(tr) |
57 | 58 |
\author{ |
58 | 59 |
Yu Guangchuang |
59 | 60 |
} |
60 |
- |
... | ... |
@@ -3,12 +3,13 @@ |
3 | 3 |
\docType{methods} |
4 | 4 |
\name{gzoom} |
5 | 5 |
\alias{gzoom} |
6 |
+\alias{gzoom} |
|
7 |
+\alias{gzoom,ggtree-method} |
|
6 | 8 |
\alias{gzoom,beast-method} |
7 | 9 |
\alias{gzoom,codeml-method} |
8 |
-\alias{gzoom,ggtree-method} |
|
10 |
+\alias{gzoom,treedata-method} |
|
9 | 11 |
\alias{gzoom,paml_rst-method} |
10 | 12 |
\alias{gzoom,phylo-method} |
11 |
-\alias{gzoom,treedata-method} |
|
12 | 13 |
\title{gzoom method} |
13 | 14 |
\usage{ |
14 | 15 |
gzoom(object, focus, subtree = FALSE, widths = c(0.3, 0.7), ...) |
... | ... |
@@ -50,4 +51,3 @@ figure |
50 | 51 |
\description{ |
51 | 52 |
zoom selected subtree |
52 | 53 |
} |
53 |
- |
... | ... |
@@ -4,9 +4,9 @@ |
4 | 4 |
\name{scale_color} |
5 | 5 |
\alias{scale_color} |
6 | 6 |
\alias{scale_color,beast-method} |
7 |
+\alias{scale_color,treedata-method} |
|
7 | 8 |
\alias{scale_color,paml_rst-method} |
8 | 9 |
\alias{scale_color,phylo-method} |
9 |
-\alias{scale_color,treedata-method} |
|
10 | 10 |
\title{scale_color method} |
11 | 11 |
\usage{ |
12 | 12 |
scale_color(object, by, ...) |
... | ... |
@@ -33,4 +33,3 @@ color vector |
33 | 33 |
\description{ |
34 | 34 |
scale color by a numerical tree attribute |
35 | 35 |
} |
36 |
- |
... | ... |
@@ -104,6 +104,13 @@ use command like this: |
104 | 104 |
|
105 | 105 |
ggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic("species name"), "accession number")', parse=T) |
106 | 106 |
|
107 |
+Another example for formating all tip labels: |
|
108 |
+ |
|
109 |
+ ggtree(rtree(30)) + geom_tiplab(aes(label=paste0('bold(', label, ')~italic(', node, ')')), parse=TRUE) |
|
110 |
+ |
|
111 |
+see also |
|
112 |
+<https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM>. |
|
113 |
+ |
|
107 | 114 |
<i class="fa fa-angle-double-right"></i> Avoid overlapping text labels |
108 | 115 |
---------------------------------------------------------------------- |
109 | 116 |
|
... | ... |
@@ -24,7 +24,7 @@ output: |
24 | 24 |
[Let us know](https://github.com/GuangchuangYu/featured_img) if you have |
25 | 25 |
published using `ggtree` and your publication will be featured here. |
26 | 26 |
|
27 |
-[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
27 |
+[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
28 | 28 |
|
29 | 29 |
<link rel='stylesheet' href=https://guangchuangyu.github.io/resume/css/morris.css> |
30 | 30 |
<script src='https://guangchuangyu.github.io/resume/css/jquery.min.js' type='text/javascript'></script> |
... | ... |
@@ -39,13 +39,13 @@ published using `ggtree` and your publication will be featured here. |
39 | 39 |
height: 300px; |
40 | 40 |
} |
41 | 41 |
</style> |
42 |
-<div id="chart11855a166b40" class="rChart morris"> |
|
42 |
+<div id="chart90c7785d73f" class="rChart morris"> |
|
43 | 43 |
|
44 | 44 |
</div> |
45 | 45 |
|
46 | 46 |
<script type='text/javascript'> |
47 | 47 |
var chartParams = { |
48 |
- "element": "chart11855a166b40", |
|
48 |
+ "element": "chart90c7785d73f", |
|
49 | 49 |
"width": 800, |
50 | 50 |
"height": 400, |
51 | 51 |
"xkey": "year", |
... | ... |
@@ -60,11 +60,11 @@ published using `ggtree` and your publication will be featured here. |
60 | 60 |
}, |
61 | 61 |
{ |
62 | 62 |
"year": 2017, |
63 |
-"cites": 21, |
|
63 |
+"cites": 25, |
|
64 | 64 |
"pubid": "HtEfBTGE9r8C" |
65 | 65 |
} |
66 | 66 |
], |
67 |
-"id": "chart11855a166b40", |
|
67 |
+"id": "chart90c7785d73f", |
|
68 | 68 |
"labels": "cites" |
69 | 69 |
}, |
70 | 70 |
chartType = "Bar" |
... | ... |
@@ -21,7 +21,7 @@ output: |
21 | 21 |
<!-- AddToAny END --> |
22 | 22 |
<link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css"> |
23 | 23 |
|
24 |
-[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
24 |
+[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
25 | 25 |
|
26 | 26 |
<!-- citation:=HtEfBTGE9r8C:=7268358477862164627 --> |
27 | 27 |
<i class="fa fa-mortar-board"></i> Journal Articles |
... | ... |
@@ -28,9 +28,9 @@ ggtree: visualization and annotation of phylogenetic trees |
28 | 28 |
<link rel="stylesheet" href="https://guangchuangyu.github.io/css/academicons.min.css"> |
29 | 29 |
|
30 | 30 |
[](https://bioconductor.org/packages/ggtree) |
31 |
-[](https://github.com/guangchuangyu/ggtree) |
|
32 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
33 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
31 |
+[](https://github.com/guangchuangyu/ggtree) |
|
32 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
33 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
34 | 34 |
|
35 | 35 |
The `ggtree` package extending the *ggplot2* package. It based on |
36 | 36 |
grammar of graphics and takes all the good parts of *ggplot2*. *ggtree* |
... | ... |
@@ -60,8 +60,8 @@ University of Hong Kong. |
60 | 60 |
Please cite the following article when using `ggtree`: |
61 | 61 |
|
62 | 62 |
[](http://dx.doi.org/10.1111/2041-210X.12628) |
63 |
-[](https://www.altmetric.com/details/10533079) |
|
64 |
-[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
63 |
+[](https://www.altmetric.com/details/10533079) |
|
64 |
+[](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) |
|
65 | 65 |
|
66 | 66 |
**G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. ggtree: an R |
67 | 67 |
package for visualization and annotation of phylogenetic trees with |
... | ... |
@@ -76,6 +76,18 @@ For example, the tiplabels contains two parts, species name and accession number |
76 | 76 |
ggtree(rtree(30)) + geom_tiplab(aes(subset=node==35), label='paste(italic("species name"), "accession number")', parse=T) |
77 | 77 |
``` |
78 | 78 |
|
79 |
+ |
|
80 |
+Another example for formating all tip labels: |
|
81 |
+ |
|
82 |
+``` |
|
83 |
+ggtree(rtree(30)) + geom_tiplab(aes(label=paste0('bold(', label, ')~italic(', node, ')')), parse=TRUE) |
|
84 |
+``` |
|
85 |
+ |
|
86 |
+see |
|
87 |
+also |
|
88 |
+<https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/BA7g-npY1BM>. |
|
89 |
+ |
|
90 |
+ |
|
79 | 91 |
## <i class="fa fa-angle-double-right"></i> Avoid overlapping text labels |
80 | 92 |
|
81 | 93 |
User can use [ggrepel](https://cran.r-project.org/web/packages/ggrepel/) package to repel overlapping text labels. |