@@ -460,6 +460,7 @@ is.scale <- function(x) inherits(x, "Scale")
460
460
# ' `self$rescaler`), `minor` (the rescaled value of `minor_source`, ignoring
461
461
# ' `self$rescaler`), `range` (the range that was passed in to `break_info()`),
462
462
# ' `labels` (the label values, one for each element in `breaks`).
463
+ # Scale -------------------------------------------------------------------
463
464
# '
464
465
# ' - `axis_order()` One of `c("primary", "secondary")` or `c("secondary", "primary")`
465
466
# '
@@ -664,6 +665,7 @@ has_default_transform <- function(scale) {
664
665
transform_method <- environment(scale $ transform )$ f
665
666
identical(default_transform , transform_method ) || identical(identity , transform_method )
666
667
}
668
+ # ScaleContinuous ---------------------------------------------------------
667
669
668
670
# ' @rdname ggplot2-ggproto
669
671
# ' @format NULL
@@ -947,6 +949,7 @@ ScaleContinuous <- ggproto("ScaleContinuous", Scale,
947
949
}
948
950
)
949
951
952
+ # ScaleDiscrete -----------------------------------------------------------
950
953
951
954
# ' @rdname ggplot2-ggproto
952
955
# ' @format NULL
@@ -1178,6 +1181,8 @@ ScaleDiscrete <- ggproto("ScaleDiscrete", Scale,
1178
1181
}
1179
1182
)
1180
1183
1184
+ # ScaleBinned -------------------------------------------------------------
1185
+
1181
1186
# ' @rdname ggplot2-ggproto
1182
1187
# ' @format NULL
1183
1188
# ' @usage NULL
@@ -1420,6 +1425,7 @@ ScaleBinned <- ggproto("ScaleBinned", Scale,
1420
1425
}
1421
1426
)
1422
1427
1428
+ # Helpers -----------------------------------------------------------------
1423
1429
# In place modification of a scale to change the primary axis
1424
1430
scale_flip_position <- function (scale ) {
1425
1431
scale $ position <- opposite_position(scale $ position )
0 commit comments