Skip to content

Commit d9a9a94

Browse files
committed
consistency with upcoming ggplot2 version
1 parent c1a2e4b commit d9a9a94

1 file changed

Lines changed: 3 additions & 3 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){

0 commit comments

Comments
 (0)