@@ -25,13 +25,13 @@ scale_x_binned <- function(name = waiver(), n.breaks = 10, nice.breaks = TRUE,
2525 breaks = waiver(), labels = waiver(), limits = NULL ,
2626 expand = waiver(), oob = squish , na.value = NA_real_ ,
2727 right = TRUE , show.limits = FALSE , trans = " identity" ,
28- position = " bottom" ) {
28+ guide = waiver(), position = " bottom" ) {
2929 binned_scale(
3030 aesthetics = c(" x" , " xmin" , " xmax" , " xend" , " xintercept" , " xmin_final" , " xmax_final" , " xlower" , " xmiddle" , " xupper" ),
3131 scale_name = " position_b" , palette = identity , name = name , breaks = breaks ,
3232 labels = labels , limits = limits , expand = expand , oob = oob , na.value = na.value ,
3333 n.breaks = n.breaks , nice.breaks = nice.breaks , right = right , trans = trans ,
34- show.limits = show.limits , guide = " none " , position = position , super = ScaleBinnedPosition
34+ show.limits = show.limits , guide = guide , position = position , super = ScaleBinnedPosition
3535 )
3636}
3737
@@ -42,13 +42,13 @@ scale_y_binned <- function(name = waiver(), n.breaks = 10, nice.breaks = TRUE,
4242 breaks = waiver(), labels = waiver(), limits = NULL ,
4343 expand = waiver(), oob = squish , na.value = NA_real_ ,
4444 right = TRUE , show.limits = FALSE , trans = " identity" ,
45- position = " left" ) {
45+ guide = waiver(), position = " left" ) {
4646 binned_scale(
4747 aesthetics = c(" y" , " ymin" , " ymax" , " yend" , " yintercept" , " ymin_final" , " ymax_final" , " lower" , " middle" , " upper" ),
4848 scale_name = " position_b" , palette = identity , name = name , breaks = breaks ,
4949 labels = labels , limits = limits , expand = expand , oob = oob , na.value = na.value ,
5050 n.breaks = n.breaks , nice.breaks = nice.breaks , right = right , trans = trans ,
51- show.limits = show.limits , guide = " none " , position = position , super = ScaleBinnedPosition
51+ show.limits = show.limits , guide = guide , position = position , super = ScaleBinnedPosition
5252 )
5353}
5454
0 commit comments