Browse code

update

Guangchuang Yu authored on 09/07/2022 07:33:16
Showing 3 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: ggtree
2 2
 Type: Package
3 3
 Title: an R package for visualization of tree and annotation data
4
-Version: 3.5.1.900
4
+Version: 3.5.1.901
5 5
 Authors@R: c(
6 6
        person("Guangchuang", "Yu",     email = "guangchuangyu@gmail.com", role = c("aut", "cre", "cph"), 
7 7
             comment = c(ORCID = "0000-0002-6485-8781")),
... ...
@@ -25,8 +25,9 @@
25 25
 
26 26
 -->
27 27
 
28
-# ggtree 3.5.1.900
28
+# ggtree 3.5.1.901
29 29
 
30
++ bug fixed in 'equal_angle' layout (2022-07-08, Fri, #514)
30 31
 + optimize `geom_tiplab` to better compatible with dendrogram layout (2022-06-23, Thu)
31 32
 
32 33
 # ggtree 3.5.1
... ...
@@ -81,7 +81,7 @@ layoutEqualAngle <- function(model, branch.length = "branch.length"){
81 81
     ## Get number of tips for each node in tree.
82 82
   ## nb.sp <- sapply(1:N, function(i) length(get.offspring.tip(tree, i)))
83 83
   ## self_include = TRUE to return itself if the input node is a tip
84
-  nb.sp <- vapply(1:N, function(i) length(suppressMessages(offspring(tree, i, tiponly = TRUE, self_include = TRUE))), numeric(1))
84
+  nb.sp <- vapply(1:N, function(i) length(offspring(tree, i,  type="tips", self_include = TRUE)), numeric(1))
85 85
     ## Get list of node id's.
86 86
     nodes <- getNodes_by_postorder(tree)
87 87