Browse code

add citation

Guangchuang Yu authored on 24/10/2018 06:17:50
Showing 6 changed files

... ...
@@ -77,13 +77,13 @@ GeomHilight <- ggproto("GeomHilight", Geom,
77 77
                          # Remove non-clade rows.
78 78
                          data <- data[data$node %in% clade_ids,]
79 79
 
80
-                         # # Get layout
81
-                         #
80
+                           ## Get layout
81
+                           ##
82 82
                            ## layout <- data[1,]$layout
83 83
                            ##
84
-                           ## If layout is ("rectangular”, "slanted", "fan", "circular", "radial") then find set of points that define
84
+                           ## If layout is ("rectangular", "slanted", "fan", "circular", "radial") then find set of points that define
85 85
                            ## the retangular region around the clade.
86
-                         # if( layout %in% c('rectangular', 'slanted', 'fan', 'circular', 'radial') ){
86
+                           ## if( layout %in% c('rectangular', 'slanted', 'fan', 'circular', 'radial') ){
87 87
                          #
88 88
                          #   # get number of clade nodes.
89 89
                          #   n <- nrow(data)
... ...
@@ -4,10 +4,14 @@
4 4
     msg <- paste0(pkgname, " v", pkgVersion, "  ",
5 5
                   "For help: https://guangchuangyu.github.io/software/", pkgname, "\n\n")
6 6
 
7
-    citation <- paste0("If you use ", pkgname, " in published research, please cite:\n",
7
+    citation <- paste0("If you use ", pkgname, " in published research, please cite the most appropriate paper(s):\n\n",
8 8
                   "Guangchuang Yu, David Smith, Huachen Zhu, Yi Guan, Tommy Tsan-Yuk Lam. ",
9 9
                   "ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. ",
10
-                  "Methods in Ecology and Evolution 2017, 8(1):28-36, doi:10.1111/2041-210X.12628")
10
+                  "Methods in Ecology and Evolution 2017, 8(1):28-36, doi:10.1111/2041-210X.12628\n\n",
11
+                  "Guangchuang Yu, Tommy Tsan-Yuk Lam, Huachen Zhu, Yi Guan.",
12
+                  "Two methods for mapping and visualizing associated data on phylogeny using ggtree.",
13
+                  "Molecular Biology and Evolution 2018, accepted. doi: 10.1093/molbev/msy194"
14
+                  )
11 15
 
12 16
     packageStartupMessage(paste0(msg, citation))
13 17
 }
... ...
@@ -14,6 +14,10 @@ html_preview: false
14 14
 #library("txtplot")
15 15
 library("badger")
16 16
 library("ypages")
17
+Biocpkg <- function (pkg) {
18
+    sprintf("[%s](http://bioconductor.org/packages/%s)", pkg, pkg)
19
+}
20
+
17 21
 ```
18 22
 
19 23
 <img src="https://raw.githubusercontent.com/Bioconductor/BiocStickers/master/ggtree/ggtree.png" height="200" align="right" />
... ...
@@ -53,13 +57,15 @@ For details, please visit our project website, <https://guangchuangyu.github.io/
53 57
 
54 58
 -----------------------------------------------------
55 59
 
56
-Please cite the following article when using `ggtree`:
57
-
58
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36.
59 60
 
61
+If you use `r Biocpkg('ggtree')` in published research, please cite the most appropriate paper(s) from this list:
60 62
 
61
-`r badge_doi("10.1111/2041-210X.12628", "green")`
62
-`r badge_altmetric("10533079", "green")`
63
+1. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for
64
+visualization and annotation of phylogenetic trees with their covariates and
65
+other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36.
66
+doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628).
67
+2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, accepted.
68
+doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194).
63 69
 
64 70
 
65 71
 ----------------------------------------------------------------------------------------
... ...
@@ -5,7 +5,7 @@
5 5
 <img src="https://raw.githubusercontent.com/Bioconductor/BiocStickers/master/ggtree/ggtree.png" height="200" align="right" />
6 6
 
7 7
 [![releaseVersion](https://img.shields.io/badge/release%20version-1.12.7-green.svg?style=flat)](https://bioconductor.org/packages/ggtree)
8
-[![develVersion](https://img.shields.io/badge/devel%20version-1.13.5-green.svg?style=flat)](https://github.com/guangchuangyu/ggtree)
8
+[![develVersion](https://img.shields.io/badge/devel%20version-1.13.6-green.svg?style=flat)](https://github.com/guangchuangyu/ggtree)
9 9
 [![Bioc](http://www.bioconductor.org/shields/years-in-bioc/ggtree.svg)](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since)
10 10
 [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://awesome-r.com/#awesome-r-graphic-displays)
11 11
 
... ...
@@ -14,7 +14,7 @@
14 14
 state and is being actively
15 15
 developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
16 16
 [![codecov](https://codecov.io/gh/GuangchuangYu/ggtree/branch/master/graph/badge.svg)](https://codecov.io/gh/GuangchuangYu/ggtree)
17
-[![Last-changedate](https://img.shields.io/badge/last%20change-2018--09--30-green.svg)](https://github.com/GuangchuangYu/ggtree/commits/master)
17
+[![Last-changedate](https://img.shields.io/badge/last%20change-2018--10--24-green.svg)](https://github.com/GuangchuangYu/ggtree/commits/master)
18 18
 
19 19
 The `ggtree` package extending the `ggplot2` package. It based on
20 20
 grammar of graphics and takes all the good parts of `ggplot2`. `ggtree`
... ...
@@ -37,19 +37,29 @@ For details, please visit our project website,
37 37
 
38 38
 -----
39 39
 
40
-Please cite the following article when using `ggtree`:
40
+If you use [ggtree](http://bioconductor.org/packages/ggtree) in
41
+published research, please cite the most appropriate paper(s) from this
42
+list:
41 43
 
42
-**G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. ggtree: an R
43
-package for visualization and annotation of phylogenetic trees with
44
-their covariates and other associated data. ***Methods in Ecology and
45
-Evolution***. 2017,
46
-8(1):28-36.
47
-
48
-[![doi](https://img.shields.io/badge/doi-10.1111/2041--210X.12628-green.svg?style=flat)](http://dx.doi.org/10.1111/2041-210X.12628)
49
-[![Altmetric](https://img.shields.io/badge/Altmetric-318-green.svg?style=flat)](https://www.altmetric.com/details/10533079)
44
+1.  **G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. ggtree: an
45
+    R package for visualization and annotation of phylogenetic trees
46
+    with their covariates and other associated data. ***Methods in
47
+    Ecology and Evolution***. 2017, 8(1):28-36. doi:
48
+    [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628).
49
+2.  **G Yu**<sup>\*</sup>, TTY Lam, H Zhu, Y Guan<sup>\*</sup>. Two
50
+    methods for mapping and visualizing associated data on phylogeny
51
+    using ggtree. ***Molecular Biology and Evolution***, accepted. doi:
52
+    [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194).
50 53
 
51 54
 -----
52 55
 
56
+## Authors
57
+
58
+Guangchuang YU <https://guangchuangyu.github.io>
59
+
60
+School of Basic Medical Sciences, Southern Medical
61
+University
62
+
53 63
 ### Citation
54 64
 
55 65
 <img src="https://guangchuangyu.github.io/software/ggtree/featured-articles/index_files/figure-html/citation-1.png" width="890"/>
... ...
@@ -57,8 +67,8 @@ Evolution***. 2017,
57 67
 ### Download stats
58 68
 
59 69
 [![download](http://www.bioconductor.org/shields/downloads/ggtree.svg)](https://bioconductor.org/packages/stats/bioc/ggtree)
60
-[![total](https://img.shields.io/badge/downloads-35476/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
61
-[![month](https://img.shields.io/badge/downloads-1614/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
70
+[![total](https://img.shields.io/badge/downloads-36767/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
71
+[![month](https://img.shields.io/badge/downloads-1378/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
62 72
 
63 73
 <img src="https://guangchuangyu.github.io/software/ggtree/index_files/figure-html/dlstats-1.png" width="890"/>
64 74
 
... ...
@@ -24,3 +24,25 @@ citEntry(
24 24
         "Methods in Ecology and Evolution 2017, 8(1):28-36")
25 25
 )
26 26
 
27
+citEntry(
28
+    entry  = "article",
29
+    title  = "Two methods for mapping and visualizing associated data on phylogeny using ggtree.",
30
+    author = personList(
31
+        as.person("Guangchuang Yu"),
32
+        as.person("Tommy Tsan-Yuk Lam"),
33
+        as.person("Huachen Zhu"),
34
+        as.person("Yi Guan")
35
+    ),
36
+    year    = "2018",
37
+    journal = "Molecular Biology and Evolution",
38
+    volume  = "",
39
+    issue   = "",
40
+    number  = "",
41
+    pages   = "",
42
+    doi     = "10.1093/molbev/msy194",
43
+    PMID    = "",
44
+    url     = "https://doi.org/10.1093/molbev/msy194",
45
+    textVersion = paste("Guangchuang Yu, Tommy Tsan-Yuk Lam, Huachen Zhu, Yi Guan.",
46
+                        "Two methods for mapping and visualizing associated data on phylogeny using ggtree.",
47
+                        "Molecular Biology and Evolution 2018, accepted. doi: 10.1093/molbev/msy194")
48
+)
... ...
@@ -48,12 +48,15 @@ Biocpkg <- function (pkg) {
48 48
 
49 49
 # Citation
50 50
 
51
-If you use `r Biocpkg('ggtree')` in published research, please cite:
51
+If you use `r Biocpkg('ggtree')` in published research, please cite the most appropriate paper(s) from this list:
52 52
 
53
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for
53
+1. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for
54 54
 visualization and annotation of phylogenetic trees with their covariates and
55 55
 other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36.
56 56
 doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628).
57
+2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, accepted.
58
+doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194).
59
+
57 60
 
58 61
 
59 62
 # Introduction