Skip to content

Commit 66147fb

Browse files
committed
Correct limits transformation in coord_map.
Fixes #1421
1 parent 035e6ff commit 66147fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/coord-map.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ CoordMap <- ggproto("CoordMap", Coord,
128128
if (is.null(limits)) {
129129
range <- scale$dimension(expand_default(scale))
130130
} else {
131-
range <- range(scale_transform(scale, limits))
131+
range <- range(scale$transform(limits))
132132
}
133133
ranges[[n]] <- range
134134
}

0 commit comments

Comments
 (0)