Browse code

fixed warning

Guangchuang Yu authored on 30/10/2019 02:03:01
Showing4 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: 2.1.0
4
+Version: 2.1.1
5 5
 Authors@R: c(
6 6
 	   person("Guangchuang", "Yu",     email = "guangchuangyu@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-6485-8781")),
7 7
 	   person("Tommy Tsan-Yuk", "Lam", email = "tylam.tommy@gmail.com",   role = c("aut", "ths")),
... ...
@@ -60,7 +60,7 @@ biocinit:
60 60
 	git fetch --all
61 61
 
62 62
 release:
63
-	git checkout RELEASE_3_9;\
63
+	git checkout RELEASE_3_10;\
64 64
 	git fetch --all
65 65
 
66 66
 update:
... ...
@@ -1,3 +1,12 @@
1
+# ggtree 2.1.1
2
+
3
++ fixed `fontface` warning message when `align=TRUE` in `geom_tiplab` (2019-10-30, Wed)
4
+  - <https://github.com/YuLab-SMU/ggtree/issues/260>
5
+
6
+# ggtree 2.0.0
7
+
8
++ Bioconductor 3.10 release (2019-10-30, Wed)
9
+
1 10
 # ggtree 1.99.1
2 11
 
3 12
 + bug fixed of `geom_hilight` for `tree$edge.length = NULL` (2019-10-16, Wed)
... ...
@@ -31,7 +31,7 @@ geom_tiplab <- function(mapping=NULL, hjust = 0,  align = FALSE, linetype = "dot
31 31
               class = "tiplab")
32 32
 }
33 33
 
34
-geom_tiplab_rectangular <- function(mapping=NULL, hjust = 0,  align = FALSE, linetype = "dotted", linesize=0.5, geom="text",  offset=0, ...) {
34
+geom_tiplab_rectangular <- function(mapping=NULL, hjust = 0,  align = FALSE, linetype = "dotted", linesize=0.5, geom="text",  offset=0, fontface = "plain", ...) {
35 35
     geom <- match.arg(geom, c("text", "label", "image", "phylopic"))
36 36
     if (geom == "text") {
37 37
         label_geom <- geom_text2
... ...
@@ -79,7 +79,7 @@ geom_tiplab_rectangular <- function(mapping=NULL, hjust = 0,  align = FALSE, lin
79 79
                           size = linesize, stat = StatTreeData, ...)
80 80
        ,
81 81
         label_geom(mapping=text_mapping,
82
-                   hjust = hjust, nudge_x = offset, stat = StatTreeData, ...)
82
+                   hjust = hjust, nudge_x = offset, stat = StatTreeData, fontface = fontface, ...)
83 83
 
84 84
     )
85 85
 }