Skip to content

Commit 635a800

Browse files
committed
add range backtransformation function. closes tidyverse#2820.
1 parent b6c0cbc commit 635a800

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/sf.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ CoordSf <- ggproto("CoordSf", CoordCartesian,
353353
)
354354
},
355355

356+
backtransform_range = function(panel_params) {
357+
list(x = panel_params$x_range, y = panel_params$y_range)
358+
},
359+
356360
# CoordSf enforces a fixed aspect ratio -> axes cannot be changed freely under faceting
357361
is_free = function() FALSE,
358362

0 commit comments

Comments
 (0)