Skip to content

Commit ae50211

Browse files
committed
update news item. fixes #2872
1 parent b790f5a commit ae50211

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

NEWS.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
# ggplot2 3.1.0.9000
22

3-
* `geom_rug()` now works with `coord_flip()` (@has2k1, #2987).
3+
* `geom_rug()` now works with `coord_flip()` (@has2k1, #2987).
4+
5+
* Layers now have a new member function `setup_layer()` which is called at the
6+
very beginning of the plot building process and which has access to the original
7+
input data and the plot object being built. This function allows the creation of
8+
custom layers that autogenerate aesthetic mappings based on the input data or that
9+
filter the input data in some form. One example is the new `LayerSf` class which
10+
locates the geometry column in sf objects and sets up an aesthetic mapping for it
11+
(@clauswilke, #2872).
412

513
* Default labels are now generated more consistently; e.g., symbols no longer
614
get backticks, and long expressions are abbreviated with `...`
715
(@yutannihilation, #2981).
816

917
* Aesthetic mappings now accept functions that return `NULL` (@yutannihilation,
10-
#2997)
18+
#2997).
1119

1220
* Closed arrows in `element_line()` are now filled (@yutannihilation, #2924).
1321

0 commit comments

Comments
 (0)