... | ... |
@@ -20,6 +20,7 @@ geom_cladelabel( |
20 | 20 |
fill = NA, |
21 | 21 |
family = "sans", |
22 | 22 |
parse = FALSE, |
23 |
+ horizontal = TRUE, |
|
23 | 24 |
... |
24 | 25 |
) |
25 | 26 |
} |
... | ... |
@@ -54,6 +55,9 @@ geom_cladelabel( |
54 | 55 |
|
55 | 56 |
\item{parse}{logical, whether parse label} |
56 | 57 |
|
58 |
+\item{horizontal}{logical, whether set label to horizontal, |
|
59 |
+default is TRUE.} |
|
60 |
+ |
|
57 | 61 |
\item{...}{additional parameter} |
58 | 62 |
} |
59 | 63 |
\value{ |
... | ... |
@@ -4,10 +4,24 @@ |
4 | 4 |
\alias{geom_cladelabel} |
5 | 5 |
\title{geom_cladelabel} |
6 | 6 |
\usage{ |
7 |
-geom_cladelabel(node, label, offset = 0, offset.text = 0, extend = 0, |
|
8 |
- align = FALSE, barsize = 0.5, fontsize = 3.88, angle = 0, |
|
9 |
- geom = "text", hjust = 0, color = NULL, fill = NA, |
|
10 |
- family = "sans", parse = FALSE, ...) |
|
7 |
+geom_cladelabel( |
|
8 |
+ node, |
|
9 |
+ label, |
|
10 |
+ offset = 0, |
|
11 |
+ offset.text = 0, |
|
12 |
+ extend = 0, |
|
13 |
+ align = FALSE, |
|
14 |
+ barsize = 0.5, |
|
15 |
+ fontsize = 3.88, |
|
16 |
+ angle = 0, |
|
17 |
+ geom = "text", |
|
18 |
+ hjust = 0, |
|
19 |
+ color = NULL, |
|
20 |
+ fill = NA, |
|
21 |
+ family = "sans", |
|
22 |
+ parse = FALSE, |
|
23 |
+ ... |
|
24 |
+) |
|
11 | 25 |
} |
12 | 26 |
\arguments{ |
13 | 27 |
\item{node}{selected node} |
... | ... |
@@ -30,7 +30,7 @@ geom_cladelabel(node, label, offset = 0, offset.text = 0, extend = 0, |
30 | 30 |
|
31 | 31 |
\item{geom}{one of 'text' or 'label'} |
32 | 32 |
|
33 |
-\item{hjust}{hjust} |
|
33 |
+\item{hjust}{justify text horizontally} |
|
34 | 34 |
|
35 | 35 |
\item{color}{color for clade & label, of length 1 or 2} |
36 | 36 |
|
... | ... |
@@ -48,6 +48,9 @@ ggplot layers |
48 | 48 |
\description{ |
49 | 49 |
annotate a clade with bar and text label |
50 | 50 |
} |
51 |
+\seealso{ |
|
52 |
+\link{geom_cladelabel2} |
|
53 |
+} |
|
51 | 54 |
\author{ |
52 | 55 |
Guangchuang Yu |
53 | 56 |
} |
... | ... |
@@ -6,8 +6,8 @@ |
6 | 6 |
\usage{ |
7 | 7 |
geom_cladelabel(node, label, offset = 0, offset.text = 0, extend = 0, |
8 | 8 |
align = FALSE, barsize = 0.5, fontsize = 3.88, angle = 0, |
9 |
- geom = "text", hjust = 0, color = NULL, fill = NA, family = "sans", |
|
10 |
- parse = FALSE, ...) |
|
9 |
+ geom = "text", hjust = 0, color = NULL, fill = NA, |
|
10 |
+ family = "sans", parse = FALSE, ...) |
|
11 | 11 |
} |
12 | 12 |
\arguments{ |
13 | 13 |
\item{node}{selected node} |
... | ... |
@@ -4,9 +4,10 @@ |
4 | 4 |
\alias{geom_cladelabel} |
5 | 5 |
\title{geom_cladelabel} |
6 | 6 |
\usage{ |
7 |
-geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
|
8 |
- barsize = 0.5, fontsize = 3.88, angle = 0, geom = "text", hjust = 0, |
|
9 |
- color = NULL, fill = NA, family = "sans", parse = FALSE, ...) |
|
7 |
+geom_cladelabel(node, label, offset = 0, offset.text = 0, extend = 0, |
|
8 |
+ align = FALSE, barsize = 0.5, fontsize = 3.88, angle = 0, |
|
9 |
+ geom = "text", hjust = 0, color = NULL, fill = NA, family = "sans", |
|
10 |
+ parse = FALSE, ...) |
|
10 | 11 |
} |
11 | 12 |
\arguments{ |
12 | 13 |
\item{node}{selected node} |
... | ... |
@@ -17,6 +18,8 @@ geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
17 | 18 |
|
18 | 19 |
\item{offset.text}{offset of text from bar} |
19 | 20 |
|
21 |
+\item{extend}{extend bar height} |
|
22 |
+ |
|
20 | 23 |
\item{align}{logical} |
21 | 24 |
|
22 | 25 |
\item{barsize}{size of bar} |
... | ... |
@@ -48,4 +51,3 @@ annotate a clade with bar and text label |
48 | 51 |
\author{ |
49 | 52 |
Guangchuang Yu |
50 | 53 |
} |
51 |
- |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@120045 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -6,7 +6,7 @@ |
6 | 6 |
\usage{ |
7 | 7 |
geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
8 | 8 |
barsize = 0.5, fontsize = 3.88, angle = 0, geom = "text", hjust = 0, |
9 |
- fill = NA, family = "sans", ...) |
|
9 |
+ color = NULL, fill = NA, family = "sans", parse = FALSE, ...) |
|
10 | 10 |
} |
11 | 11 |
\arguments{ |
12 | 12 |
\item{node}{selected node} |
... | ... |
@@ -29,10 +29,14 @@ geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
29 | 29 |
|
30 | 30 |
\item{hjust}{hjust} |
31 | 31 |
|
32 |
+\item{color}{color for clade & label, of length 1 or 2} |
|
33 |
+ |
|
32 | 34 |
\item{fill}{fill label background, only work with geom='label'} |
33 | 35 |
|
34 | 36 |
\item{family}{sans by default, can be any supported font} |
35 | 37 |
|
38 |
+\item{parse}{logical, whether parse label} |
|
39 |
+ |
|
36 | 40 |
\item{...}{additional parameter} |
37 | 41 |
} |
38 | 42 |
\value{ |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@114634 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -6,7 +6,7 @@ |
6 | 6 |
\usage{ |
7 | 7 |
geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
8 | 8 |
barsize = 0.5, fontsize = 3.88, angle = 0, geom = "text", hjust = 0, |
9 |
- fill = NA, ...) |
|
9 |
+ fill = NA, family = "sans", ...) |
|
10 | 10 |
} |
11 | 11 |
\arguments{ |
12 | 12 |
\item{node}{selected node} |
... | ... |
@@ -31,6 +31,8 @@ geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
31 | 31 |
|
32 | 32 |
\item{fill}{fill label background, only work with geom='label'} |
33 | 33 |
|
34 |
+\item{family}{sans by default, can be any supported font} |
|
35 |
+ |
|
34 | 36 |
\item{...}{additional parameter} |
35 | 37 |
} |
36 | 38 |
\value{ |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@111988 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@111815 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,43 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/geom_cladelabel.R |
|
3 |
+\name{geom_cladelabel} |
|
4 |
+\alias{geom_cladelabel} |
|
5 |
+\title{geom_cladelabel} |
|
6 |
+\usage{ |
|
7 |
+geom_cladelabel(node, label, offset = 0, offset.text = 0, align = FALSE, |
|
8 |
+ barsize = 0.5, fontsize = 3.88, angle = 0, geom = "text", hjust = 0, |
|
9 |
+ fill = NA, ...) |
|
10 |
+} |
|
11 |
+\arguments{ |
|
12 |
+\item{node}{selected node} |
|
13 |
+ |
|
14 |
+\item{label}{clade label} |
|
15 |
+ |
|
16 |
+\item{offset}{offset of bar and text from the clade} |
|
17 |
+ |
|
18 |
+\item{offset.text}{offset of text from bar} |
|
19 |
+ |
|
20 |
+\item{align}{logical} |
|
21 |
+ |
|
22 |
+\item{barsize}{size of bar} |
|
23 |
+ |
|
24 |
+\item{fontsize}{size of text} |
|
25 |
+ |
|
26 |
+\item{angle}{angle of text} |
|
27 |
+ |
|
28 |
+\item{geom}{one of 'text' or 'label'} |
|
29 |
+ |
|
30 |
+\item{fill}{fill label background, only work with geom='label'} |
|
31 |
+ |
|
32 |
+\item{...}{additional parameter} |
|
33 |
+} |
|
34 |
+\value{ |
|
35 |
+ggplot layers |
|
36 |
+} |
|
37 |
+\description{ |
|
38 |
+annotate a clade with bar and text label |
|
39 |
+} |
|
40 |
+\author{ |
|
41 |
+Guangchuang Yu |
|
42 |
+} |
|
43 |
+ |