File tree 2 files changed +23
-2
lines changed
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 3
3
* ` geom_sf() ` now respects ` lineend ` , ` linejoin ` , and ` linemitre ` parameters
4
4
for lines and polygons (@alistaire47 , #2826 )
5
5
6
+ * The function ` range() ` in ` Coord ` has been renamed to ` backtransform_range() `
7
+ to clarify its intended meaning. This affects developers of custom coords. It
8
+ may also affect developers of custom geoms that use the ` range() ` function. That
9
+ code should be migrated to use ` backtransform_range() ` (@clauswilke , breaking change).
10
+
11
+ * ` geom_hline() ` , ` geom_vline() ` , and ` geom_abline() ` now work properly
12
+ with ` coord_trans() ` (@clauswilke , #2149 , #2812 ).
13
+
6
14
* ` benchplot() ` now uses tidy evaluation (@dpseidel , #2699 ).
7
-
15
+
8
16
* ` fortify() ` now displays a more informative error message for
9
17
` grouped_df() ` objects when dplyr is not installed (@jimhester , #2822 ).
10
18
Original file line number Diff line number Diff line change @@ -77,10 +77,23 @@ Coord <- ggproto("Coord",
77
77
# back into range in given in (possibly scale-transformed)
78
78
# data coordinates
79
79
backtransform_range = function (panel_params ) {
80
- warning(" range backtransformation not implemented in this coord; plot may be wrong." )
80
+ warning(
81
+ " range backtransformation not implemented in this coord; plot may be wrong." ,
82
+ call. = FALSE
83
+ )
81
84
list (x = panel_params $ x.range , y = panel_params $ y.range )
82
85
},
83
86
87
+ # deprecated, do not use or reimplement
88
+ # kept only for backwards compatibility
89
+ range = function (self , panel_params ) {
90
+ warning(
91
+ " function `Coord$range()` is deprecated; use `Coord$backtransform_range()`." ,
92
+ call. = FALSE
93
+ )
94
+ self $ backtransform_range(panel_params )
95
+ }
96
+
84
97
setup_panel_params = function (scale_x , scale_y , params = list ()) {
85
98
list ()
86
99
},
You can’t perform that action at this time.
0 commit comments