From 787263dc9ee9ce184c0d6e1395f8d52c4a3a3d2e Mon Sep 17 00:00:00 2001 From: edzer Date: Sat, 16 Mar 2024 16:37:16 +0100 Subject: [PATCH] fixes #367 --- R/scale_units.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/scale_units.R b/R/scale_units.R index aad2dd2..a433891 100644 --- a/R/scale_units.R +++ b/R/scale_units.R @@ -54,7 +54,7 @@ scale_x_units <- function(..., guide = ggplot2::waiver(), position = "bottom", sc <- ggplot2::continuous_scale( c("x", "xmin", "xmax", "xend", "xintercept", "xmin_final", "xmax_final", "xlower", "xmiddle", "xupper"), - "position_c", identity, ..., + palette = identity, ..., guide = guide, position = position, super = MakeScaleContinuousPositionUnits() @@ -73,7 +73,7 @@ scale_y_units <- function(..., guide = ggplot2::waiver(), position = "left", sc <- ggplot2::continuous_scale( c("y", "ymin", "ymax", "yend", "yintercept", "ymin_final", "ymax_final", "lower", "middle", "upper"), - "position_c", identity, ..., + palette = identity, ..., guide = guide, position = position, super = MakeScaleContinuousPositionUnits()