... | ... |
@@ -19,12 +19,36 @@ layout_fan(angle = 180) |
19 | 19 |
layout_dendrogram() |
20 | 20 |
} |
21 | 21 |
\arguments{ |
22 |
-\item{xlim}{x limits} |
|
22 |
+\item{xlim}{setting x limits, which will affect the center space of the tree} |
|
23 | 23 |
|
24 | 24 |
\item{angle}{open tree at specific angle} |
25 | 25 |
} |
26 | 26 |
\description{ |
27 |
-tree layout |
|
27 |
+transform circular/fan layout to rectangular layout |
|
28 |
+ |
|
29 |
+transform rectangular layout to circular layout |
|
30 |
+ |
|
31 |
+transform rectangular/circular layout to inward circular layout |
|
32 |
+ |
|
33 |
+transform rectangular/circular layout to fan layout |
|
34 |
+ |
|
35 |
+transform rectangular layout to dendrogram layout |
|
36 |
+} |
|
37 |
+\examples{ |
|
38 |
+tree <- rtree(20) |
|
39 |
+p <- ggtree(tree, layout = "circular") + layout_rectangular() |
|
40 |
+tree <- rtree(20) |
|
41 |
+p <- ggtree(tree) |
|
42 |
+p + layout_circular() |
|
43 |
+tree <- rtree(20) |
|
44 |
+p <- ggtree(tree) |
|
45 |
+p + layout_inward_circular(xlim=4) + geom_tiplab(hjust=1) |
|
46 |
+tree <- rtree(20) |
|
47 |
+p <- ggtree(tree) |
|
48 |
+p + layout_fan(angle=90) |
|
49 |
+tree <- rtree(20) |
|
50 |
+p <- ggtree(tree) |
|
51 |
+p + p + layout_dendrogram() |
|
28 | 52 |
} |
29 | 53 |
\author{ |
30 | 54 |
Guangchuang Yu |
... | ... |
@@ -3,6 +3,7 @@ |
3 | 3 |
\name{layout_rectangular} |
4 | 4 |
\alias{layout_rectangular} |
5 | 5 |
\alias{layout_circular} |
6 |
+\alias{layout_inward_circular} |
|
6 | 7 |
\alias{layout_fan} |
7 | 8 |
\alias{layout_dendrogram} |
8 | 9 |
\title{layout_rectangular} |
... | ... |
@@ -11,6 +12,8 @@ layout_rectangular() |
11 | 12 |
|
12 | 13 |
layout_circular() |
13 | 14 |
|
15 |
+layout_inward_circular(xlim = NULL) |
|
16 |
+ |
|
14 | 17 |
layout_fan(angle = 180) |
15 | 18 |
|
16 | 19 |
layout_dendrogram() |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/layout.R |
|
3 |
+\name{layout_rectangular} |
|
4 |
+\alias{layout_rectangular} |
|
5 |
+\alias{layout_circular} |
|
6 |
+\alias{layout_fan} |
|
7 |
+\alias{layout_dendrogram} |
|
8 |
+\title{layout_rectangular} |
|
9 |
+\usage{ |
|
10 |
+layout_rectangular() |
|
11 |
+ |
|
12 |
+layout_circular() |
|
13 |
+ |
|
14 |
+layout_fan(angle = 180) |
|
15 |
+ |
|
16 |
+layout_dendrogram() |
|
17 |
+} |
|
18 |
+\arguments{ |
|
19 |
+\item{angle}{open tree at specific angle} |
|
20 |
+} |
|
21 |
+\description{ |
|
22 |
+tree layout |
|
23 |
+} |
|
24 |
+\author{ |
|
25 |
+Guangchuang Yu |
|
26 |
+} |