...
|
...
|
@@ -6,7 +6,7 @@ author: "Guangchuang Yu and Tommy Tsan-Yuk Lam\\
|
6
|
6
|
date: "`r Sys.Date()`"
|
7
|
7
|
bibliography: ggtree.bib
|
8
|
8
|
csl: nature.csl
|
9
|
|
-output:
|
|
9
|
+output:
|
10
|
10
|
prettydoc::html_pretty:
|
11
|
11
|
toc: true
|
12
|
12
|
theme: cayman
|
...
|
...
|
@@ -99,13 +99,13 @@ __`circular`__
|
99
|
99
|
|
100
|
100
|
```{r fig.height=5, fig.width=5, fig.align="center"}
|
101
|
101
|
ggtree(tree, layout="circular") + ggtitle("(Phylogram) circular layout")
|
102
|
|
-```
|
|
102
|
+```
|
103
|
103
|
|
104
|
104
|
__`fan`__
|
105
|
105
|
|
106
|
106
|
```{r fig.height=5, fig.width=5, fig.align="center"}
|
107
|
|
-ggtree(tree, layout="fan", open.angle=180) + ggtitle("(Phylogram) circular layout")
|
108
|
|
-```
|
|
107
|
+ggtree(tree, layout="fan", open.angle=180) + ggtitle("(Phylogram) fan layout")
|
|
108
|
+```
|
109
|
109
|
|
110
|
110
|
|
111
|
111
|
## Cladogram
|
...
|
...
|
@@ -132,7 +132,7 @@ __`fan`__
|
132
|
132
|
|
133
|
133
|
```{r fig.height=5, fig.width=5, fig.align="center"}
|
134
|
134
|
ggtree(tree, layout="fan", open.angle=180, branch.length="none") + ggtitle("(Cladogram) circular layout")
|
135
|
|
-```
|
|
135
|
+```
|
136
|
136
|
|
137
|
137
|
|
138
|
138
|
## Unrooted
|
...
|
...
|
@@ -164,7 +164,7 @@ ggtree(tree2d, mrsd = "2014-05-01",
|
164
|
164
|
theme(panel.grid.major.x=element_line(color="grey20", linetype="dotted", size=.3),
|
165
|
165
|
panel.grid.major.y=element_blank()) +
|
166
|
166
|
scale_y_continuous(labels=paste0("N", 2:7))
|
167
|
|
-```
|
|
167
|
+```
|
168
|
168
|
|
169
|
169
|
In this example, the figure demonstrates the quantity of __*y*__ increase along the trunk. User can highlight the trunk with different line size or color using the functions described in [Tree Manipulation](treeManipulation.html) vignette.
|
170
|
170
|
|
...
|
...
|
@@ -212,7 +212,7 @@ Showing all the internal nodes and tips in the tree can be done by adding a laye
|
212
|
212
|
```{r fig.width=3, fig.height=3, fig.align="center"}
|
213
|
213
|
ggtree(tree)+geom_point(aes(shape=isTip, color=isTip), size=3)
|
214
|
214
|
```
|
215
|
|
-
|
|
215
|
+
|
216
|
216
|
```{r fig.width=3, fig.height=3, fig.align="center"}
|
217
|
217
|
p <- ggtree(tree) + geom_nodepoint(color="#b5e521", alpha=1/4, size=10)
|
218
|
218
|
p + geom_tippoint(color="#FDAC4F", shape=8, size=3)
|