@@ -25,13 +25,13 @@ scale_x_binned <- function(name = waiver(), n.breaks = 10, nice.breaks = TRUE,
25
25
breaks = waiver(), labels = waiver(), limits = NULL ,
26
26
expand = waiver(), oob = squish , na.value = NA_real_ ,
27
27
right = TRUE , show.limits = FALSE , trans = " identity" ,
28
- position = " bottom" ) {
28
+ guide = waiver(), position = " bottom" ) {
29
29
binned_scale(
30
30
aesthetics = c(" x" , " xmin" , " xmax" , " xend" , " xintercept" , " xmin_final" , " xmax_final" , " xlower" , " xmiddle" , " xupper" ),
31
31
scale_name = " position_b" , palette = identity , name = name , breaks = breaks ,
32
32
labels = labels , limits = limits , expand = expand , oob = oob , na.value = na.value ,
33
33
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
35
35
)
36
36
}
37
37
@@ -42,13 +42,13 @@ scale_y_binned <- function(name = waiver(), n.breaks = 10, nice.breaks = TRUE,
42
42
breaks = waiver(), labels = waiver(), limits = NULL ,
43
43
expand = waiver(), oob = squish , na.value = NA_real_ ,
44
44
right = TRUE , show.limits = FALSE , trans = " identity" ,
45
- position = " left" ) {
45
+ guide = waiver(), position = " left" ) {
46
46
binned_scale(
47
47
aesthetics = c(" y" , " ymin" , " ymax" , " yend" , " yintercept" , " ymin_final" , " ymax_final" , " lower" , " middle" , " upper" ),
48
48
scale_name = " position_b" , palette = identity , name = name , breaks = breaks ,
49
49
labels = labels , limits = limits , expand = expand , oob = oob , na.value = na.value ,
50
50
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
52
52
)
53
53
}
54
54
0 commit comments