guangchuang yu authored on 07/11/2016 03:16:33
Showing 6 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: ggtree
2 2
 Type: Package
3 3
 Title: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data
4
-Version: 1.7.2
4
+Version: 1.7.3
5 5
 Authors@R: c(
6 6
 	   person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre", "cph")),
7 7
 	   person("Tommy Tsan-Yuk", "Lam", email = "tylam.tommy@gmail.com", rol = c("aut", "ths")),
... ...
@@ -111,6 +111,7 @@ export(read.raxml)
111 111
 export(read.tree)
112 112
 export(reroot)
113 113
 export(rescale_tree)
114
+export(revts)
114 115
 export(rotate)
115 116
 export(rotate_tree)
116 117
 export(rtree)
... ...
@@ -1,3 +1,8 @@
1
+CHANGES IN VERSION 1.7.3
2
+------------------------
3
+ o reverse timescale x-axis <2016-11-07, Mon>
4
+   + https://github.com/GuangchuangYu/ggtree/issues/87
5
+
1 6
 CHANGES IN VERSION 1.7.2
2 7
 ------------------------
3 8
  o make missing colors in gheatmap invisible (previously use 'white') <2016-11-03, Thu>
... ...
@@ -26,3 +26,17 @@ xlim_expand <- function(xlim, panel) {
26 26
     geom_blank(aes_(x=~x), dummy, inherit.aes = FALSE)
27 27
 }
28 28
 
29
+##' reverse timescle x-axis
30
+##'
31
+##'
32
+##' @title revts
33
+##' @param treeview treeview
34
+##' @return updated treeview
35
+##' @export
36
+##' @author guangchuang yu
37
+revts <- function(treeview) {
38
+    x <- treeview$data$x
39
+    x <- x - max(x)
40
+    treeview$data$x <- x
41
+    treeview
42
+}
... ...
@@ -1,9 +1,9 @@
1 1
 ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data
2 2
 ===========================================================================================================================
3 3
 
4
-[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.2-green.svg?style=flat)](https://bioconductor.org/packages/ggtree) [![develVersion](https://img.shields.io/badge/devel%20version-1.7.2-green.svg?style=flat)](https://github.com/GuangchuangYu/ggtree) [![Bioc](http://www.bioconductor.org/shields/years-in-bioc/ggtree.svg)](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [![total](https://img.shields.io/badge/downloads-15734/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1678/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
4
+[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.2-green.svg?style=flat)](https://bioconductor.org/packages/ggtree) [![develVersion](https://img.shields.io/badge/devel%20version-1.7.2-green.svg?style=flat)](https://github.com/GuangchuangYu/ggtree) [![Bioc](http://www.bioconductor.org/shields/years-in-bioc/ggtree.svg)](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [![total](https://img.shields.io/badge/downloads-16279/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1621/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
5 5
 
6
-[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![codecov](https://codecov.io/gh/GuangchuangYu/ggtree/branch/master/graph/badge.svg)](https://codecov.io/gh/GuangchuangYu/ggtree) [![Last-changedate](https://img.shields.io/badge/last%20change-2016--11--03-green.svg)](https://github.com/GuangchuangYu/ggtree/commits/master) [![GitHub forks](https://img.shields.io/github/forks/GuangchuangYu/ggtree.svg)](https://github.com/GuangchuangYu/ggtree/network) [![GitHub stars](https://img.shields.io/github/stars/GuangchuangYu/ggtree.svg)](https://github.com/GuangchuangYu/ggtree/stargazers) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://awesome-r.com/#awesome-r-graphic-displays)
6
+[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![codecov](https://codecov.io/gh/GuangchuangYu/ggtree/branch/master/graph/badge.svg)](https://codecov.io/gh/GuangchuangYu/ggtree) [![Last-changedate](https://img.shields.io/badge/last%20change-2016--11--07-green.svg)](https://github.com/GuangchuangYu/ggtree/commits/master) [![GitHub forks](https://img.shields.io/github/forks/GuangchuangYu/ggtree.svg)](https://github.com/GuangchuangYu/ggtree/network) [![GitHub stars](https://img.shields.io/github/stars/GuangchuangYu/ggtree.svg)](https://github.com/GuangchuangYu/ggtree/stargazers) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://awesome-r.com/#awesome-r-graphic-displays)
7 7
 
8 8
 [![platform](http://www.bioconductor.org/shields/availability/devel/ggtree.svg)](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#archives) [![Build Status](http://www.bioconductor.org/shields/build/devel/bioc/ggtree.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/ggtree/) [![Linux/Mac Travis Build Status](https://img.shields.io/travis/GuangchuangYu/ggtree/master.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/GuangchuangYu/ggtree) [![AppVeyor Build Status](https://img.shields.io/appveyor/ci/Guangchuangyu/ggtree/master.svg?label=Windows)](https://ci.appveyor.com/project/GuangchuangYu/ggtree) [![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-green.svg?style=flat)](http://bioconda.github.io/recipes/bioconductor-ggtree/README.html)
9 9
 
... ...
@@ -17,7 +17,7 @@ Please cite the following article when using `ggtree`:
17 17
 
18 18
 **G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. ***Methods in Ecology and Evolution***. *accepted*
19 19
 
20
-[![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) [![citation](https://img.shields.io/badge/cited%20by-1-green.svg?style=flat)](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [![Altmetric](https://img.shields.io/badge/Altmetric-275-green.svg?style=flat)](https://www.altmetric.com/details/10533079)
20
+[![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) [![citation](https://img.shields.io/badge/cited%20by-1-green.svg?style=flat)](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [![Altmetric](https://img.shields.io/badge/Altmetric-274-green.svg?style=flat)](https://www.altmetric.com/details/10533079)
21 21
 
22 22
 ------------------------------------------------------------------------
23 23
 
... ...
@@ -50,30 +50,30 @@ For details, please visit our project website, <https://guangchuangyu.github.io/
50 50
 
51 51
 ### Download stats
52 52
 
53
-[![download](http://www.bioconductor.org/shields/downloads/ggtree.svg)](https://bioconductor.org/packages/stats/bioc/ggtree/) [![total](https://img.shields.io/badge/downloads-15734/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1678/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
53
+[![download](http://www.bioconductor.org/shields/downloads/ggtree.svg)](https://bioconductor.org/packages/stats/bioc/ggtree/) [![total](https://img.shields.io/badge/downloads-16279/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1621/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
54 54
 
55
-         +-------------------------+------------------------+-------------------------+----------------+
55
+         +------------------------+-----------------------+-----------------------+--------------------+
56
+         |                                                                                    *        |
56 57
          |                                                                                         *   |
57
-         |                                                                                             |
58 58
     1500 +                                                                                             +
59 59
          |                                                                                             |
60 60
          |                                                                                             |
61 61
          |                                                                                             |
62
-         |                                                                            *                |
63
-         |                                                               *                    *        |
64
-         |                                                                   *   *        *            |
62
+         |                                                                        *                    |
63
+         |                                                            *                   *            |
64
+         |                                                                *   *       *                |
65 65
     1000 +                                                                                             +
66 66
          |                                                                                             |
67
-         |                                              *       *                                      |
68
-         |                                                           *                                 |
69
-         |                                     *    *       *                                          |
67
+         |                                            *       *                                        |
68
+         |                                                        *                                    |
69
+         |                                    *   *       *                                            |
70 70
          |                                                                                             |
71
-     500 +                                 *                                                           +
71
+     500 +                                *                                                            +
72 72
          |                                                                                             |
73
-         |                    *   *    *                                                               |
73
+         |                   *   *   *                                                                 |
74 74
          |                                                                                             |
75
-         |                *                                                                            |
75
+         |               *                                                                             |
76 76
          |                                                                                             |
77
-       0 +   *   *    *                                                                                +
78
-         +-------------------------+------------------------+-------------------------+----------------+
79
-       2015                     2015.5                    2016                     2016.5
77
+       0 +   *   *   *                                                                                 +
78
+         +------------------------+-----------------------+-----------------------+--------------------+
79
+       2015                    2015.5                   2016                   2016.5
80 80
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/xlim.R
3
+\name{revts}
4
+\alias{revts}
5
+\title{revts}
6
+\usage{
7
+revts(treeview)
8
+}
9
+\arguments{
10
+\item{treeview}{treeview}
11
+}
12
+\value{
13
+updated treeview
14
+}
15
+\description{
16
+reverse timescle x-axis
17
+}
18
+\author{
19
+guangchuang yu
20
+}
21
+