Skip to content

Commit

Permalink
add range backtransformation function. closes tidyverse#2820.
Browse files Browse the repository at this point in the history
  • Loading branch information
clauswilke committed Aug 22, 2018
1 parent 02f11e8 commit 58e425b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/sf.R
Expand Up @@ -353,6 +353,10 @@ CoordSf <- ggproto("CoordSf", CoordCartesian,
)
},

backtransform_range = function(panel_params) {
list(x = panel_params$x_range, y = panel_params$y_range)
},

# CoordSf enforces a fixed aspect ratio -> axes cannot be changed freely under faceting
is_free = function() FALSE,

Expand Down

0 comments on commit 58e425b

Please sign in to comment.