Browse code

reverse_x and reverse_y parameters for inset

guangchuang yu authored on 05/01/2017 03:23:11
Showing 11 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.5
4
+Version: 1.7.6
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")),
... ...
@@ -1,3 +1,8 @@
1
+CHANGES IN VERSION 1.7.6
2
+------------------------
3
+ o inset support reverse scale <2017-01-05, Thu>
4
+   + https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/_JPfm71Z8nM/6gL93oxHFQAJ
5
+
1 6
 CHANGES IN VERSION 1.7.5
2 7
 ------------------------
3 8
  o disable labeling collapsed node as tip <2017-01-03, Tue>
... ...
@@ -9,10 +9,14 @@
9 9
 ##' @param hjust horizontal adjustment
10 10
 ##' @param vjust vertical adjustment
11 11
 ##' @param x x position, one of 'node' and 'branch'
12
+##' @param reverse_x whether x axis was reversed by scale_x_reverse
13
+##' @param reverse_y whether y axis was reversed by scale_y_reverse
12 14
 ##' @return tree view with insets
13 15
 ##' @export
14 16
 ##' @author Guangchuang Yu
15
-inset <- function(tree_view, insets, width=0.1, height=0.1, hjust=0, vjust=0, x="node") {
17
+inset <- function(tree_view, insets, width=0.1, height=0.1, hjust=0, vjust=0,
18
+                  x="node", reverse_x=FALSE, reverse_y=FALSE) {
19
+
16 20
     df <- tree_view$data[as.numeric(names(insets)),]
17 21
     x <- match.arg(x, c("node", "branch", "edge"))
18 22
 
... ...
@@ -25,6 +29,10 @@ inset <- function(tree_view, insets, width=0.1, height=0.1, hjust=0, vjust=0, x=
25 29
 
26 30
     xx <- xx - hjust
27 31
     yy <- yy - vjust
32
+    if (reverse_x)
33
+        xx <- -xx
34
+    if (reverse_y)
35
+        yy <- -yy
28 36
 
29 37
     for (i in seq_along(insets)) {
30 38
         tree_view %<>% subview(insets[[i]],
... ...
@@ -2,9 +2,9 @@
2 2
 ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data
3 3
 ===========================================================================================================================
4 4
 
5
-[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.6-green.svg?style=flat)](https://bioconductor.org/packages/ggtree) [![develVersion](https://img.shields.io/badge/devel%20version-1.7.5-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-19096/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1852/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) <img src="logo.png" align="right" />
5
+[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.7-green.svg?style=flat)](https://bioconductor.org/packages/ggtree) [![develVersion](https://img.shields.io/badge/devel%20version-1.7.6-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-19191/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1177/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) <img src="logo.png" align="right" />
6 6
 
7
-[![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--12--30-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
+[![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-2017--01--05-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)
8 8
 
9 9
 [![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)
10 10
 
... ...
@@ -18,7 +18,7 @@ Please cite the following article when using `ggtree`:
18 18
 
19 19
 **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*
20 20
 
21
-[![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-284-green.svg?style=flat)](https://www.altmetric.com/details/10533079)
21
+[![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-287-green.svg?style=flat)](https://www.altmetric.com/details/10533079)
22 22
 
23 23
 ------------------------------------------------------------------------
24 24
 
... ...
@@ -51,30 +51,30 @@ For details, please visit our project website, <https://guangchuangyu.github.io/
51 51
 
52 52
 ### Download stats
53 53
 
54
-[![download](http://www.bioconductor.org/shields/downloads/ggtree.svg)](https://bioconductor.org/packages/stats/bioc/ggtree) [![total](https://img.shields.io/badge/downloads-19096/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1852/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
54
+[![download](http://www.bioconductor.org/shields/downloads/ggtree.svg)](https://bioconductor.org/packages/stats/bioc/ggtree) [![total](https://img.shields.io/badge/downloads-19191/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree) [![month](https://img.shields.io/badge/downloads-1177/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
55 55
 
56
-         +----------------------+----------------------+----------------------+----------------------+-+
57
-         |                                                                                        *    |
56
+         ++---------------------+---------------------+---------------------+---------------------+----+
57
+         |                                                                                    *        |
58 58
          |                                                                                             |
59
+         |                                                                            *                |
59 60
          |                                                                                *            |
60
-         |                                                                                    *        |
61 61
     1500 +                                                                                             +
62 62
          |                                                                                             |
63 63
          |                                                                                             |
64
-         |                                                                    *                        |
65
-         |                                                         *                  *                |
66
-         |                                                                *       *                    |
67
-    1000 +                                                             *                               +
64
+         |                                                                 *                           |
65
+         |                                                      *                  *              *    |
66
+         |                                                              *      *                       |
67
+    1000 +                                                          *                                  +
68 68
          |                                                                                             |
69
-         |                                         *       *                                           |
70
-         |                                             *       *                                       |
71
-         |                                  *   *                                                      |
69
+         |                                        *      *                                             |
70
+         |                                           *       *                                         |
71
+         |                                *   *                                                        |
72 72
          |                                                                                             |
73
-     500 +                              *                                                              +
74
-         |                      *   *                                                                  |
73
+     500 +                             *                                                               +
74
+         |                     *   *                                                                   |
75 75
          |                  *                                                                          |
76 76
          |              *                                                                              |
77 77
          |                                                                                             |
78
-       0 +   *   *   *                                                                                 +
79
-         +----------------------+----------------------+----------------------+----------------------+-+
80
-       2015                  2015.5                  2016                  2016.5                  2017
78
+       0 +   *   *  *                                                                                  +
79
+         ++---------------------+---------------------+---------------------+---------------------+----+
80
+        2015                 2015.5                 2016                 2016.5                 2017
... ...
@@ -229,11 +229,11 @@
229 229
   }  
230 230
   </style>
231 231
 
232
-<div id = 'chart464a137dd257' class = 'rChart morris'></div>
232
+<div id = 'chart6b52366c186' class = 'rChart morris'></div>
233 233
 
234 234
 <script type='text/javascript'>
235 235
     var chartParams = {
236
- "element": "chart464a137dd257",
236
+ "element": "chart6b52366c186",
237 237
 "width":            800,
238 238
 "height":            400,
239 239
 "xkey": "year",
... ...
@@ -247,7 +247,7 @@
247 247
 "pubid": "HtEfBTGE9r8C" 
248 248
 } 
249 249
 ],
250
-"id": "chart464a137dd257",
250
+"id": "chart6b52366c186",
251 251
 "labels": "cites" 
252 252
 },
253 253
       chartType = "Bar"
... ...
@@ -241,10 +241,10 @@
241 241
 
242 242
 <p><img src="https://raw.githubusercontent.com/GuangchuangYu/ggtree/master/logo.png" align="right" /></p>
243 243
 <p><link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css"></p>
244
-<p><a href="https://bioconductor.org/packages/ggtree"><img alt="releaseVersion" src="https://img.shields.io/badge/release%20version-1.6.6-blue.svg?style=flat" /></a>
245
-<a href="https://github.com/GuangchuangYu/ggtree"><img alt="develVersion" src="https://img.shields.io/badge/devel%20version-1.7.5-blue.svg?style=flat" /></a>
246
-<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="total" src="https://img.shields.io/badge/downloads-19152/total-blue.svg?style=flat" /></a>
247
-<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="month" src="https://img.shields.io/badge/downloads-1852/month-blue.svg?style=flat" /></a></p>
244
+<p><a href="https://bioconductor.org/packages/ggtree"><img alt="releaseVersion" src="https://img.shields.io/badge/release%20version-1.6.7-blue.svg?style=flat" /></a>
245
+<a href="https://github.com/GuangchuangYu/ggtree"><img alt="develVersion" src="https://img.shields.io/badge/devel%20version-1.7.6-blue.svg?style=flat" /></a>
246
+<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="total" src="https://img.shields.io/badge/downloads-19191/total-blue.svg?style=flat" /></a>
247
+<a href="https://bioconductor.org/packages/stats/bioc/ggtree"><img alt="month" src="https://img.shields.io/badge/downloads-1177/month-blue.svg?style=flat" /></a></p>
248 248
 <p>The <code>ggtree</code> package extending the <em>ggplot2</em> package. It based on grammar of graphics and takes all the good parts of <em>ggplot2</em>.  <em>ggtree</em> is designed for not only viewing phylogenetic tree but also displaying annotation data on the tree.
249 249
 <em>ggtree</em> is released within the <a href="https://bioconductor.org/packages/ggtree/">Bioconductor</a> project and the source code is hosted on <a href="https://github.com/GuangchuangYu/ggtree"><i class="fa fa-github fa-lg"></i> GitHub</a>.</p>
250 250
 <h2 id="authors"><i class="fa fa-user"></i> Authors</h2>
... ...
@@ -253,7 +253,7 @@
253 253
 <p>Please cite the following article when using <code>ggtree</code>:</p>
254 254
 <p><a href="http://dx.doi.org/10.1111/2041-210X.12628"><img alt="doi" src="https://img.shields.io/badge/doi-10.1111/2041--210X.12628-blue.svg?style=flat" /></a>
255 255
 <a href="https://scholar.google.com.hk/scholar?oi=bibs&amp;hl=en&amp;cites=7268358477862164627"><img alt="citation" src="https://img.shields.io/badge/cited%20by-1-blue.svg?style=flat" /></a>
256
-<a href="https://www.altmetric.com/details/10533079"><img alt="Altmetric" src="https://img.shields.io/badge/Altmetric-284-blue.svg?style=flat" /></a></p>
256
+<a href="https://www.altmetric.com/details/10533079"><img alt="Altmetric" src="https://img.shields.io/badge/Altmetric-287-blue.svg?style=flat" /></a></p>
257 257
 <p><strong>G Yu</strong>, 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. <strong><em>Methods in Ecology and Evolution</em></strong>. <em>accepted</em>.</p>
258 258
 <h2 id="featured-articles"><i class="fa fa-pencil"></i> Featured Articles</h2>
259 259
 <p><img alt="" src="https://guangchuangyu.github.io/featured_img/ggtree/2015_peiyu_1-s2.0-S1567134815300721-gr1.jpg" /></p>
... ...
@@ -207,7 +207,7 @@
207 207
         }, 
208 208
         {
209 209
             "location": "/featuredArticles/", 
210
-            "text": "Let us know\n if you have published using \nggtree\n and your publication will be featured here.\n\n\n\n\n\n\n\n\n\n\n\n\n\n  .rChart {\n    display: block;\n    margin-left: auto; \n    margin-right: auto;\n    width: 800px;\n    height: 300px;\n  }  \n  \n\n\n\n\n\n\n\n    var chartParams = {\n \"element\": \"chart464a137dd257\",\n\"width\":            800,\n\"height\":            400,\n\"xkey\": \"year\",\n\"ykeys\": [\n \"cites\" \n],\n\"data\": [\n {\n \"year\": 2016,\n\"cites\":              1,\n\"pubid\": \"HtEfBTGE9r8C\" \n} \n],\n\"id\": \"chart464a137dd257\",\n\"labels\": \"cites\" \n},\n      chartType = \"Bar\"\n    new Morris[chartType](chartParams)\n\n\n\n\n 2016\n\n\nLack of GLYCOLATE OXIDASE 1, but not GLYCOLATE OXIDASE 2, attenuates the photorespiratory phenotype of CATALASE2-deficient \nArabidopsis\n\n\nPlant Physiology\n May. 2016 \n\n\n\n\nRange overlap drives chromosome inversion fixation in passerine birds\n\n\nbioRxiv\n May. 2016 \nhttp://dx.doi.org/10.1101/053371\n\n\n\n\nPhenotypic and Genotypic Characteristics of Shiga Toxin-Producing Escherichia coli Isolated from Surface Waters and Sediments in a Canadian Urban-Agricultural Landscape\n\n\nFront. Cell. Infect. Microbiol.\n Apr. 2016 \nhttp://dx.doi.org/10.3389%2Ffcimb.2016.00036\n\n\n\n\nWs-2\n Introgression in a Proportion of \nArabidopsis thaliana Col-0\n Stock Seed Produces Specific Phenotypes and Highlights the Importance of Routine Genetic Verification\n\n\nPlant Cell\n Mar. 2016 \nhttp://dx.doi.org/10.1105/tpc.16.00053\n\n\n\n\n 2015\n\n\nThe population genetics of drug resistance evolution in natural populations of viral, bacterial and eukaryotic pathogens\n\n\nMolecuar Ecology\n Dec. 2015 \nhttp://dx.doi.org/10.1111/mec.13474\n\n\n\n\nGenetic characterization of highly pathogenic H5 influenza viruses from poultry in Taiwan, 2015\n\n\nInfection, Genetics and Evolution\n Dec. 2015 \nhttp://dx.doi.org/10.1016/j.meegid.2015.12.006\n\n\n\n\nTrans-species polymorphism at antimicrobial innate immunity cathelicidin genes of Atlantic cod and related species\n\n\nPeerJ\n May 2015 \nhttps://doi.org/10.7717/peerj.976", 
210
+            "text": "Let us know\n if you have published using \nggtree\n and your publication will be featured here.\n\n\n\n\n\n\n\n\n\n\n\n\n\n  .rChart {\n    display: block;\n    margin-left: auto; \n    margin-right: auto;\n    width: 800px;\n    height: 300px;\n  }  \n  \n\n\n\n\n\n\n\n    var chartParams = {\n \"element\": \"chart6b52366c186\",\n\"width\":            800,\n\"height\":            400,\n\"xkey\": \"year\",\n\"ykeys\": [\n \"cites\" \n],\n\"data\": [\n {\n \"year\": 2016,\n\"cites\":              1,\n\"pubid\": \"HtEfBTGE9r8C\" \n} \n],\n\"id\": \"chart6b52366c186\",\n\"labels\": \"cites\" \n},\n      chartType = \"Bar\"\n    new Morris[chartType](chartParams)\n\n\n\n\n 2016\n\n\nLack of GLYCOLATE OXIDASE 1, but not GLYCOLATE OXIDASE 2, attenuates the photorespiratory phenotype of CATALASE2-deficient \nArabidopsis\n\n\nPlant Physiology\n May. 2016 \n\n\n\n\nRange overlap drives chromosome inversion fixation in passerine birds\n\n\nbioRxiv\n May. 2016 \nhttp://dx.doi.org/10.1101/053371\n\n\n\n\nPhenotypic and Genotypic Characteristics of Shiga Toxin-Producing Escherichia coli Isolated from Surface Waters and Sediments in a Canadian Urban-Agricultural Landscape\n\n\nFront. Cell. Infect. Microbiol.\n Apr. 2016 \nhttp://dx.doi.org/10.3389%2Ffcimb.2016.00036\n\n\n\n\nWs-2\n Introgression in a Proportion of \nArabidopsis thaliana Col-0\n Stock Seed Produces Specific Phenotypes and Highlights the Importance of Routine Genetic Verification\n\n\nPlant Cell\n Mar. 2016 \nhttp://dx.doi.org/10.1105/tpc.16.00053\n\n\n\n\n 2015\n\n\nThe population genetics of drug resistance evolution in natural populations of viral, bacterial and eukaryotic pathogens\n\n\nMolecuar Ecology\n Dec. 2015 \nhttp://dx.doi.org/10.1111/mec.13474\n\n\n\n\nGenetic characterization of highly pathogenic H5 influenza viruses from poultry in Taiwan, 2015\n\n\nInfection, Genetics and Evolution\n Dec. 2015 \nhttp://dx.doi.org/10.1016/j.meegid.2015.12.006\n\n\n\n\nTrans-species polymorphism at antimicrobial innate immunity cathelicidin genes of Atlantic cod and related species\n\n\nPeerJ\n May 2015 \nhttps://doi.org/10.7717/peerj.976", 
211 211
             "title": "Featured Articles"
212 212
         }, 
213 213
         {
... ...
@@ -4,7 +4,7 @@
4 4
     
5 5
     <url>
6 6
      <loc>https://guangchuangyu.github.io/ggtree/</loc>
7
-     <lastmod>2017-01-03</lastmod>
7
+     <lastmod>2017-01-05</lastmod>
8 8
      <changefreq>daily</changefreq>
9 9
     </url>
10 10
     
... ...
@@ -12,7 +12,7 @@
12 12
     
13 13
     <url>
14 14
      <loc>https://guangchuangyu.github.io/ggtree/documentation/</loc>
15
-     <lastmod>2017-01-03</lastmod>
15
+     <lastmod>2017-01-05</lastmod>
16 16
      <changefreq>daily</changefreq>
17 17
     </url>
18 18
     
... ...
@@ -20,7 +20,7 @@
20 20
     
21 21
     <url>
22 22
      <loc>https://guangchuangyu.github.io/ggtree/faq/</loc>
23
-     <lastmod>2017-01-03</lastmod>
23
+     <lastmod>2017-01-05</lastmod>
24 24
      <changefreq>daily</changefreq>
25 25
     </url>
26 26
     
... ...
@@ -28,7 +28,7 @@
28 28
     
29 29
     <url>
30 30
      <loc>https://guangchuangyu.github.io/ggtree/featuredArticles/</loc>
31
-     <lastmod>2017-01-03</lastmod>
31
+     <lastmod>2017-01-05</lastmod>
32 32
      <changefreq>daily</changefreq>
33 33
     </url>
34 34
     
... ...
@@ -37,55 +37,55 @@
37 37
         
38 38
     <url>
39 39
      <loc>https://guangchuangyu.github.io/ggtree/ChIPseeker/</loc>
40
-     <lastmod>2017-01-03</lastmod>
40
+     <lastmod>2017-01-05</lastmod>
41 41
      <changefreq>daily</changefreq>
42 42
     </url>
43 43
         
44 44
     <url>
45 45
      <loc>https://guangchuangyu.github.io/ggtree/clusterProfiler/</loc>
46
-     <lastmod>2017-01-03</lastmod>
46
+     <lastmod>2017-01-05</lastmod>
47 47
      <changefreq>daily</changefreq>
48 48
     </url>
49 49
         
50 50
     <url>
51 51
      <loc>https://guangchuangyu.github.io/ggtree/DOSE/</loc>
52
-     <lastmod>2017-01-03</lastmod>
52
+     <lastmod>2017-01-05</lastmod>
53 53
      <changefreq>daily</changefreq>
54 54
     </url>
55 55
         
56 56
     <url>
57 57
      <loc>https://guangchuangyu.github.io/ggtree/emojifont/</loc>
58
-     <lastmod>2017-01-03</lastmod>
58
+     <lastmod>2017-01-05</lastmod>
59 59
      <changefreq>daily</changefreq>
60 60
     </url>
61 61
         
62 62
     <url>
63 63
      <loc>https://guangchuangyu.github.io/ggtree/ggtree/</loc>
64
-     <lastmod>2017-01-03</lastmod>
64
+     <lastmod>2017-01-05</lastmod>
65 65
      <changefreq>daily</changefreq>
66 66
     </url>
67 67
         
68 68
     <url>
69 69
      <loc>https://guangchuangyu.github.io/ggtree/GOSemSim/</loc>
70
-     <lastmod>2017-01-03</lastmod>
70
+     <lastmod>2017-01-05</lastmod>
71 71
      <changefreq>daily</changefreq>
72 72
     </url>
73 73
         
74 74
     <url>
75 75
      <loc>https://guangchuangyu.github.io/ggtree/meshes/</loc>
76
-     <lastmod>2017-01-03</lastmod>
76
+     <lastmod>2017-01-05</lastmod>
77 77
      <changefreq>daily</changefreq>
78 78
     </url>
79 79
         
80 80
     <url>
81 81
      <loc>https://guangchuangyu.github.io/ggtree/ReactomePA/</loc>
82
-     <lastmod>2017-01-03</lastmod>
82
+     <lastmod>2017-01-05</lastmod>
83 83
      <changefreq>daily</changefreq>
84 84
     </url>
85 85
         
86 86
     <url>
87 87
      <loc>https://guangchuangyu.github.io/ggtree/treeio/</loc>
88
-     <lastmod>2017-01-03</lastmod>
88
+     <lastmod>2017-01-05</lastmod>
89 89
      <changefreq>daily</changefreq>
90 90
     </url>
91 91
         
... ...
@@ -5,7 +5,7 @@
5 5
 \title{inset}
6 6
 \usage{
7 7
 inset(tree_view, insets, width = 0.1, height = 0.1, hjust = 0,
8
-  vjust = 0, x = "node")
8
+  vjust = 0, x = "node", reverse_x = FALSE, reverse_y = FALSE)
9 9
 }
10 10
 \arguments{
11 11
 \item{tree_view}{tree view}
... ...
@@ -21,6 +21,10 @@ inset(tree_view, insets, width = 0.1, height = 0.1, hjust = 0,
21 21
 \item{vjust}{vertical adjustment}
22 22
 
23 23
 \item{x}{x position, one of 'node' and 'branch'}
24
+
25
+\item{reverse_x}{whether x axis was reversed by scale_x_reverse}
26
+
27
+\item{reverse_y}{whether y axis was reversed by scale_y_reverse}
24 28
 }
25 29
 \value{
26 30
 tree view with insets
... ...
@@ -36,10 +36,10 @@
36 36
   }  
37 37
   </style>
38 38
 
39
-<div id = 'chart464a137dd257' class = 'rChart morris'></div>
39
+<div id = 'chart6b52366c186' class = 'rChart morris'></div>
40 40
 <script type='text/javascript'>
41 41
     var chartParams = {
42
- "element": "chart464a137dd257",
42
+ "element": "chart6b52366c186",
43 43
 "width":            800,
44 44
 "height":            400,
45 45
 "xkey": "year",
... ...
@@ -53,7 +53,7 @@
53 53
 "pubid": "HtEfBTGE9r8C" 
54 54
 } 
55 55
 ],
56
-"id": "chart464a137dd257",
56
+"id": "chart6b52366c186",
57 57
 "labels": "cites" 
58 58
 },
59 59
       chartType = "Bar"
... ...
@@ -20,10 +20,10 @@
20 20
 
21 21
 <link rel="stylesheet" href="https://guangchuangyu.github.io/css/font-awesome.min.css">
22 22
 
23
-[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.6-blue.svg?style=flat)](https://bioconductor.org/packages/ggtree)
24
-[![develVersion](https://img.shields.io/badge/devel%20version-1.7.5-blue.svg?style=flat)](https://github.com/GuangchuangYu/ggtree)
25
-[![total](https://img.shields.io/badge/downloads-19152/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
26
-[![month](https://img.shields.io/badge/downloads-1852/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
23
+[![releaseVersion](https://img.shields.io/badge/release%20version-1.6.7-blue.svg?style=flat)](https://bioconductor.org/packages/ggtree)
24
+[![develVersion](https://img.shields.io/badge/devel%20version-1.7.6-blue.svg?style=flat)](https://github.com/GuangchuangYu/ggtree)
25
+[![total](https://img.shields.io/badge/downloads-19191/total-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
26
+[![month](https://img.shields.io/badge/downloads-1177/month-blue.svg?style=flat)](https://bioconductor.org/packages/stats/bioc/ggtree)
27 27
 
28 28
 
29 29
 The `ggtree` package extending the *ggplot2* package. It based on grammar of graphics and takes all the good parts of *ggplot2*.  *ggtree* is designed for not only viewing phylogenetic tree but also displaying annotation data on the tree.
... ...
@@ -40,7 +40,7 @@ Please cite the following article when using `ggtree`:
40 40
 
41 41
 [![doi](https://img.shields.io/badge/doi-10.1111/2041--210X.12628-blue.svg?style=flat)](http://dx.doi.org/10.1111/2041-210X.12628)
42 42
 [![citation](https://img.shields.io/badge/cited%20by-1-blue.svg?style=flat)](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627)
43
-[![Altmetric](https://img.shields.io/badge/Altmetric-284-blue.svg?style=flat)](https://www.altmetric.com/details/10533079)
43
+[![Altmetric](https://img.shields.io/badge/Altmetric-287-blue.svg?style=flat)](https://www.altmetric.com/details/10533079)
44 44
 
45 45
 __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*.
46 46