Browse code

update man files and fixed R check

Guangchuang Yu authored on 23/03/2022 04:13:34
Showing 1 changed files
... ...
@@ -11,17 +11,24 @@
11 11
 
12 12
 \item{node}{internal node number}
13 13
 
14
-\item{mode}{one of 'none', 'max', 'min' and 'mixed'}
14
+\item{mode}{one of 'none'(default), 'max', 'min' and 'mixed'. 'none' would simply collapse the clade as 'tip' and
15
+the rest will display a triangle, whose shape is determined by the farest/closest tip of the collapsed clade to indicate it}
15 16
 
16
-\item{clade_name}{set clade name. If clade_name = NULL, do nothing}
17
+\item{clade_name}{set a name for the collapsed clade. If clade_name = NULL, do nothing}
17 18
 
18
-\item{...}{additional parameters}
19
+\item{...}{additional parameters to set the color or transparency of the triangle}
19 20
 }
20 21
 \value{
21 22
 tree view
22 23
 }
23 24
 \description{
24
-collapse a clade
25
+collapse a selected clade, which can later be expanded with the 'expand()' fuction if necessary
26
+}
27
+\examples{
28
+x <- rtree(15)
29
+p <- ggtree(x) + geom_tiplab()
30
+p
31
+p1 <- collapse(p, node = 17, mode = "mixed", clade_name = "cclade", alpha = 0.8, color = "grey", fill = "light blue")
25 32
 }
26 33
 \seealso{
27 34
 expand
Browse code

zoomClade and geom_zoom_clade

Guangchuang Yu authored on 03/08/2020 16:21:17
Showing 1 changed files
... ...
@@ -7,9 +7,9 @@
7 7
 \method{collapse}{ggtree}(x = NULL, node, mode = "none", clade_name = NULL, ...)
8 8
 }
9 9
 \arguments{
10
-\item{x}{tree view}
10
+\item{x}{tree view (i.e. the ggtree object). If tree_view is NULL, the last ggplot will be used.}
11 11
 
12
-\item{node}{clade node}
12
+\item{node}{internal node number}
13 13
 
14 14
 \item{mode}{one of 'none', 'max', 'min' and 'mixed'}
15 15
 
Browse code

clip="off" and update docs

Guangchuang Yu authored on 06/12/2019 03:01:17
Showing 1 changed files
... ...
@@ -4,8 +4,7 @@
4 4
 \alias{collapse.ggtree}
5 5
 \title{collapse-ggtree}
6 6
 \usage{
7
-\method{collapse}{ggtree}(x = NULL, node, mode = "none",
8
-  clade_name = NULL, ...)
7
+\method{collapse}{ggtree}(x = NULL, node, mode = "none", clade_name = NULL, ...)
9 8
 }
10 9
 \arguments{
11 10
 \item{x}{tree view}
Browse code

mode paramter in collapse

Guangchuang Yu authored on 11/07/2019 05:43:27
Showing 1 changed files
... ...
@@ -4,13 +4,16 @@
4 4
 \alias{collapse.ggtree}
5 5
 \title{collapse-ggtree}
6 6
 \usage{
7
-\method{collapse}{ggtree}(x = NULL, node, clade_name = NULL, ...)
7
+\method{collapse}{ggtree}(x = NULL, node, mode = "none",
8
+  clade_name = NULL, ...)
8 9
 }
9 10
 \arguments{
10 11
 \item{x}{tree view}
11 12
 
12 13
 \item{node}{clade node}
13 14
 
15
+\item{mode}{one of 'none', 'max', 'min' and 'mixed'}
16
+
14 17
 \item{clade_name}{set clade name. If clade_name = NULL, do nothing}
15 18
 
16 19
 \item{...}{additional parameters}
Browse code

clade_name paramter in collapse

guangchuang yu authored on 28/05/2018 03:02:54
Showing 1 changed files
... ...
@@ -4,13 +4,15 @@
4 4
 \alias{collapse.ggtree}
5 5
 \title{collapse-ggtree}
6 6
 \usage{
7
-\method{collapse}{ggtree}(x = NULL, node, ...)
7
+\method{collapse}{ggtree}(x = NULL, node, clade_name = NULL, ...)
8 8
 }
9 9
 \arguments{
10 10
 \item{x}{tree view}
11 11
 
12 12
 \item{node}{clade node}
13 13
 
14
+\item{clade_name}{set clade name. If clade_name = NULL, do nothing}
15
+
14 16
 \item{...}{additional parameters}
15 17
 }
16 18
 \value{
Browse code

update vignettes

guangchuang yu authored on 03/01/2018 09:55:53
Showing 1 changed files
... ...
@@ -1,15 +1,17 @@
1 1
 % Generated by roxygen2: do not edit by hand
2 2
 % Please edit documentation in R/clade-functions.R
3
-\name{collapse}
4
-\alias{collapse}
5
-\title{collapse}
3
+\name{collapse.ggtree}
4
+\alias{collapse.ggtree}
5
+\title{collapse-ggtree}
6 6
 \usage{
7
-collapse(tree_view = NULL, node)
7
+\method{collapse}{ggtree}(x = NULL, node, ...)
8 8
 }
9 9
 \arguments{
10
-\item{tree_view}{tree view}
10
+\item{x}{tree view}
11 11
 
12 12
 \item{node}{clade node}
13
+
14
+\item{...}{additional parameters}
13 15
 }
14 16
 \value{
15 17
 tree view
Browse code

geom_motif #148

guangchuang yu authored on 22/08/2017 08:22:37
Showing 1 changed files
... ...
@@ -17,10 +17,9 @@ tree view
17 17
 \description{
18 18
 collapse a clade
19 19
 }
20
-\author{
21
-Guangchuang Yu
22
-}
23 20
 \seealso{
24 21
 expand
25 22
 }
26
-
23
+\author{
24
+Guangchuang Yu
25
+}
Browse code

update docs

guangchuang yu authored on 16/08/2017 02:36:13
Showing 1 changed files
... ...
@@ -17,9 +17,10 @@ tree view
17 17
 \description{
18 18
 collapse a clade
19 19
 }
20
-\seealso{
21
-expand
22
-}
23 20
 \author{
24 21
 Guangchuang Yu
25 22
 }
23
+\seealso{
24
+expand
25
+}
26
+
Browse code

add extend parameter in geom_cladelabel

guangchuang yu authored on 26/07/2017 02:13:53
Showing 1 changed files
... ...
@@ -17,10 +17,9 @@ tree view
17 17
 \description{
18 18
 collapse a clade
19 19
 }
20
-\author{
21
-Guangchuang Yu
22
-}
23 20
 \seealso{
24 21
 expand
25 22
 }
26
-
23
+\author{
24
+Guangchuang Yu
25
+}
Browse code

viewClade, scaleClade, collapse, expand, rotate, flip, get_taxa_name and scale_x_ggtree accepts input tree_view=NULL.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@112503 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 13/01/2016 07:47:55
Showing 1 changed files
... ...
@@ -1,10 +1,10 @@
1 1
 % Generated by roxygen2: do not edit by hand
2
-% Please edit documentation in R/ggtree.R
2
+% Please edit documentation in R/clade-functions.R
3 3
 \name{collapse}
4 4
 \alias{collapse}
5 5
 \title{collapse}
6 6
 \usage{
7
-collapse(tree_view, node)
7
+collapse(tree_view = NULL, node)
8 8
 }
9 9
 \arguments{
10 10
 \item{tree_view}{tree view}
Browse code

lots updates

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@111813 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 22/12/2015 04:08:02
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-% Generated by roxygen2 (4.1.1): do not edit by hand
1
+% Generated by roxygen2: do not edit by hand
2 2
 % Please edit documentation in R/ggtree.R
3 3
 \name{collapse}
4 4
 \alias{collapse}
Browse code

Commit made by the Bioconductor Git-SVN bridge.

Commit id: ca17acc22b608158936b9c2790bff2f7504f38d9

add author



git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@103112 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 27/04/2015 03:15:40
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-% Generated by roxygen2 (4.1.0): do not edit by hand
1
+% Generated by roxygen2 (4.1.1): do not edit by hand
2 2
 % Please edit documentation in R/ggtree.R
3 3
 \name{collapse}
4 4
 \alias{collapse}
Browse code

Commit made by the Bioconductor Git-SVN bridge.

Commit id: 06148bb3ff7d69f510bc9c3755ea80810415ad11

groupClade



git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@100622 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 13/03/2015 04:11:52
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,26 @@
1
+% Generated by roxygen2 (4.1.0): do not edit by hand
2
+% Please edit documentation in R/ggtree.R
3
+\name{collapse}
4
+\alias{collapse}
5
+\title{collapse}
6
+\usage{
7
+collapse(tree_view, node)
8
+}
9
+\arguments{
10
+\item{tree_view}{tree view}
11
+
12
+\item{node}{clade node}
13
+}
14
+\value{
15
+tree view
16
+}
17
+\description{
18
+collapse a clade
19
+}
20
+\author{
21
+Guangchuang Yu
22
+}
23
+\seealso{
24
+expand
25
+}
26
+