Skip to content

Commit 9af0346

Browse files
committed
update limits to fit breaks
1 parent 2882abc commit 9af0346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/scale-binned.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ScaleBinnedPosition <- ggproto("ScaleBinnedPosition", ScaleBinned,
7070

7171
map = function(self, x, limits = self$get_limits()) {
7272
breaks <- self$get_breaks(limits)
73+
limits <- range(breaks, limits) # update limits
7374
all_breaks <- unique0(sort(c(limits[1], breaks, limits[2])))
7475

7576
if (self$after.stat) {

0 commit comments

Comments
 (0)