Skip to content

Commit e972bcb

Browse files
Merge pull request #48 from xiangpin/master
consistency with upcoming ggplot2 version
2 parents 2e0d270 + d9a9a94 commit e972bcb

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

R/axis.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ alab_ <- function(label, axis, fontsize=11, ...) {
3737
##' @importFrom ggplot2 element_blank
3838
##' @importFrom ggplot2 margin
3939
##' @export
40-
ggplot_add.alab <- function(object, plot, object_name) {
40+
ggplot_add.alab <- function(object, plot, object_name, ...) {
4141
label <- object$label
4242
object$label <- NULL
4343
axis <- object$axis
@@ -113,7 +113,7 @@ axis_align <- function(gg, limits = NULL, axis) {
113113
##' @importFrom ggplot2 scale_y_continuous
114114
##' @importFrom methods is
115115
##' @export
116-
ggplot_add.axisAlign <- function(object, plot, object_name) {
116+
ggplot_add.axisAlign <- function(object, plot, object_name, ...) {
117117
limits <- object$limits
118118

119119
## expand_limits <- object$expand_limits
@@ -181,7 +181,7 @@ ggplot_add.axisAlign <- function(object, plot, object_name) {
181181
}
182182
## }
183183
}
184-
ggplot_add(scale_lim, plot, object_name)
184+
ggplot_add(scale_lim, plot, object_name, ...)
185185
}
186186

187187
set_scale_limits <- function(scales, limits, expand){

README.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ html_preview: false
1010

1111
# `aplot` for decorating a plot with associated information
1212

13+
<a href="https://yulab-smu.top/aplot/"><img src="man/figures/aplot_logo.png" height="160" align="right" /></a>
14+
1315
`r badger::badge_license("Artistic-2.0")`
1416
`r badger::badge_github_version("YuLab-SMU/aplot", "blue")`
1517
`r badger::badge_code_size("YuLab-SMU/aplot")`

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# `aplot` for decorating a plot with associated information
44

5+
<a href="https://yulab-smu.top/aplot/"><img src="man/figures/aplot_logo.png" height="160" align="right" /></a>
6+
57
[![License:
68
Artistic-2.0](https://img.shields.io/badge/license-Artistic--2.0-blue.svg)](https://cran.r-project.org/web/licenses/Artistic-2.0)
79
[![](https://img.shields.io/badge/devel%20version-0.2.5-blue.svg)](https://github.com/YuLab-SMU/aplot)
@@ -17,10 +19,9 @@ status](https://github.com/YuLab-SMU/aplot/workflows/rworkflows/badge.svg)](http
1719
For many times, we are not just aligning plots as what ‘cowplot’ and
1820
‘patchwork’ did. Users would like to align associated information that
1921
requires axes to be exactly matched in subplots, e.g. hierarchical
20-
clustering with a heatmap. Inspired by the ‘Method 2’ in ‘ggtree’ (G Yu
21-
(2018) <doi:10.1093/molbev/msy194>), ‘aplot’ provides utilities to
22-
aligns associated subplots to a main plot at different sides (left,
23-
right, top and bottom) with axes exactly matched.
22+
clustering with a heatmap. This package provides utilities to aligns
23+
associated subplots to a main plot at different sides (left, right, top
24+
and bottom) with axes exactly matched.
2425

2526
## :writing_hand: Authors
2627

man/figures/aplot_logo.png

28.2 KB
Loading

0 commit comments

Comments
 (0)