... | ... |
@@ -133,10 +133,10 @@ export(theme_tree2) |
133 | 133 |
export(unit) |
134 | 134 |
export(viewClade) |
135 | 135 |
export(xlim) |
136 |
-export(xlim_align) |
|
136 |
+export(xlim2) |
|
137 | 137 |
export(xlim_expand) |
138 | 138 |
export(xlim_tree) |
139 |
-export(ylim_align) |
|
139 |
+export(ylim2) |
|
140 | 140 |
exportMethods(gzoom) |
141 | 141 |
exportMethods(scale_color) |
142 | 142 |
importFrom(ape,di2multi) |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
# ggtree 2.1.1 |
2 | 2 |
|
3 | 3 |
+ convert roxygen documents using markdown (2019-11-01, Fri) |
4 |
-+ `xlim_align` and `ylim_align` to uniformize axis limits of ggplot objects (2019-10-31, Thu) |
|
4 |
++ `xlim2` and `ylim2` to uniformize axis limits of ggplot objects (2019-10-31, Thu) |
|
5 | 5 |
- <https://yulab-smu.github.io/treedata-book/chapter7.html#composite_plot> |
6 | 6 |
- <https://yulab-smu.github.io/treedata-book/docs/chapter10.html#axis_align> |
7 | 7 |
+ fixed `fontface` warning message when `align=TRUE` in `geom_tiplab` (2019-10-30, Wed) |
... | ... |
@@ -59,25 +59,25 @@ revts <- function(treeview) { |
59 | 59 |
|
60 | 60 |
|
61 | 61 |
##' set axis limits (x or y) of a `ggplot` object (left hand side of `+`) |
62 |
-##' based on the x (`xlim_align`) or y (`ylim_align`) limits of another `ggplot` object (right hand side of `+`). |
|
62 |
+##' based on the x (`xlim2`) or y (`ylim2`) limits of another `ggplot` object (right hand side of `+`). |
|
63 | 63 |
##' This is useful for using `cowplot` or `patchwork` to align `ggplot` objects. |
64 | 64 |
##' |
65 | 65 |
##' |
66 |
-##' @title xlim_align |
|
66 |
+##' @title xlim2 |
|
67 | 67 |
##' @rdname align_axis |
68 | 68 |
##' @param gg ggplot object |
69 | 69 |
##' @param limits vector of limits. If NULL, determine from `gg`. |
70 | 70 |
##' @return ggplot2 object with new limits |
71 | 71 |
##' @export |
72 | 72 |
##' @author Guangchuang Yu |
73 |
-xlim_align <- function(gg, limits = NULL) { |
|
73 |
+xlim2 <- function(gg, limits = NULL) { |
|
74 | 74 |
axis_align(gg = gg, limits = limits, axis = 'x') |
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
##' @rdname align_axis |
78 |
-##' @title ylim_align |
|
78 |
+##' @title ylim2 |
|
79 | 79 |
##' @export |
80 |
-ylim_align <- function(gg, limits = NULL) { |
|
80 |
+ylim2 <- function(gg, limits = NULL) { |
|
81 | 81 |
axis_align(gg = gg, limits = limits, axis = 'y') |
82 | 82 |
} |
83 | 83 |
|
... | ... |
@@ -1,13 +1,13 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/axis.R |
3 |
-\name{xlim_align} |
|
4 |
-\alias{xlim_align} |
|
5 |
-\alias{ylim_align} |
|
6 |
-\title{xlim_align} |
|
3 |
+\name{xlim2} |
|
4 |
+\alias{xlim2} |
|
5 |
+\alias{ylim2} |
|
6 |
+\title{xlim2} |
|
7 | 7 |
\usage{ |
8 |
-xlim_align(gg, limits = NULL) |
|
8 |
+xlim2(gg, limits = NULL) |
|
9 | 9 |
|
10 |
-ylim_align(gg, limits = NULL) |
|
10 |
+ylim2(gg, limits = NULL) |
|
11 | 11 |
} |
12 | 12 |
\arguments{ |
13 | 13 |
\item{gg}{ggplot object} |
... | ... |
@@ -19,7 +19,7 @@ ggplot2 object with new limits |
19 | 19 |
} |
20 | 20 |
\description{ |
21 | 21 |
set axis limits (x or y) of a \code{ggplot} object (left hand side of \code{+}) |
22 |
-based on the x (\code{xlim_align}) or y (\code{ylim_align}) limits of another \code{ggplot} object (right hand side of \code{+}). |
|
22 |
+based on the x (\code{xlim2}) or y (\code{ylim2}) limits of another \code{ggplot} object (right hand side of \code{+}). |
|
23 | 23 |
This is useful for using \code{cowplot} or \code{patchwork} to align \code{ggplot} objects. |
24 | 24 |
} |
25 | 25 |
\author{ |