... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
##' tree theme |
2 | 2 |
##' |
3 |
-##' |
|
3 |
+##' |
|
4 | 4 |
##' @title theme_tree |
5 | 5 |
##' @param bgcolor background color |
6 | 6 |
##' @param fgcolor foreground color |
... | ... |
@@ -32,7 +32,7 @@ theme_tree <- function(bgcolor="white", fgcolor="black", ...) { |
32 | 32 |
|
33 | 33 |
##' tree2 theme |
34 | 34 |
##' |
35 |
-##' |
|
35 |
+##' |
|
36 | 36 |
##' @title theme_tree2 |
37 | 37 |
##' @param bgcolor background color |
38 | 38 |
##' @param fgcolor foreground color |
... | ... |
@@ -57,24 +57,31 @@ theme_tree2 <- function(bgcolor="white", fgcolor="black", ...) { |
57 | 57 |
) |
58 | 58 |
} |
59 | 59 |
|
60 |
-theme_tree2_internal <- function(bgcolor="white", fgcolor="black", ...) { |
|
60 |
+theme_tree2_internal <- function(bgcolor="white", fgcolor="black", |
|
61 |
+ legend.position="none", |
|
62 |
+ panel.grid.minor=element_blank(), |
|
63 |
+ panel.grid.major=element_blank(), |
|
64 |
+ panel.border=element_blank(), |
|
65 |
+ axis.line.y=element_blank(), |
|
66 |
+ axis.ticks.y=element_blank(), |
|
67 |
+ axis.text.y=element_blank(),...) { |
|
61 | 68 |
theme_bw() %+replace% |
62 |
- theme(legend.position="none", |
|
63 |
- panel.grid.minor=element_blank(), |
|
64 |
- panel.grid.major=element_blank(), |
|
69 |
+ theme(legend.position=legend.position, |
|
70 |
+ panel.grid.minor=panel.grid.minor, |
|
71 |
+ panel.grid.major=panel.grid.major, |
|
65 | 72 |
panel.background=element_rect(fill=bgcolor, colour=bgcolor), |
66 |
- panel.border=element_blank(), |
|
73 |
+ panel.border=panel.border, |
|
67 | 74 |
## axis.line=element_line(color=fgcolor), |
68 | 75 |
axis.line.x=element_line(color=fgcolor), |
69 |
- axis.line.y=element_blank(), |
|
70 |
- axis.ticks.y=element_blank(), |
|
71 |
- axis.text.y=element_blank(), |
|
76 |
+ axis.line.y=axis.line.y, |
|
77 |
+ axis.ticks.y=axis.ticks.y, |
|
78 |
+ axis.text.y=axis.text.y, |
|
72 | 79 |
...) |
73 | 80 |
} |
74 | 81 |
|
75 | 82 |
##' transparent background theme |
76 | 83 |
##' |
77 |
-##' |
|
84 |
+##' |
|
78 | 85 |
##' @title theme_transparent |
79 | 86 |
##' @param ... additional parameter to tweak the theme |
80 | 87 |
##' @return ggplot object |
... | ... |
@@ -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 |
-[](https://bioconductor.org/packages/ggtree) [](https://github.com/GuangchuangYu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
4 |
+[](https://bioconductor.org/packages/ggtree) [](https://github.com/GuangchuangYu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
5 | 5 |
|
6 |
-[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
6 |
+[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
7 | 7 |
|
8 | 8 |
[](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#archives) [](https://bioconductor.org/checkResults/devel/bioc-LATEST/ggtree/) [](https://travis-ci.org/GuangchuangYu/ggtree) [](https://ci.appveyor.com/project/GuangchuangYu/ggtree) [](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 |
-[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [](https://www.altmetric.com/details/10533079) |
|
20 |
+[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [](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 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree/) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
53 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree/) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
54 | 54 |
|
55 |
- +--------------------------+--------------------------+--------------------------+------------+ |
|
56 |
- | * | |
|
57 |
- 1200 + + |
|
58 |
- | * * | |
|
59 |
- | * | |
|
60 |
- 1000 + * * + |
|
55 |
+ +-------------------------+------------------------+-------------------------+----------------+ |
|
56 |
+ | * | |
|
61 | 57 |
| | |
58 |
+ 1500 + + |
|
62 | 59 |
| | |
63 | 60 |
| | |
64 |
- 800 + * * + |
|
65 |
- | * | |
|
66 |
- | * * | |
|
67 |
- 600 + * + |
|
68 | 61 |
| | |
62 |
+ | * | |
|
63 |
+ | * * | |
|
64 |
+ | * * * | |
|
65 |
+ 1000 + + |
|
69 | 66 |
| | |
70 |
- | * | |
|
71 |
- 400 + * * + |
|
72 |
- | * | |
|
67 |
+ | * * | |
|
68 |
+ | * | |
|
69 |
+ | * * * | |
|
73 | 70 |
| | |
74 |
- 200 + * + |
|
71 |
+ 500 + * + |
|
75 | 72 |
| | |
73 |
+ | * * * | |
|
76 | 74 |
| | |
77 |
- | * * * | |
|
78 |
- 0 +--------------------------+--------------------------+--------------------------+------------+ |
|
79 |
- 2015.5 2016 2016.5 |
|
75 |
+ | * | |
|
76 |
+ | | |
|
77 |
+ 0 + * * * + |
|
78 |
+ +-------------------------+------------------------+-------------------------+----------------+ |
|
79 |
+ 2015 2015.5 2016 2016.5 |