Skip to content

Commit dd590d8

Browse files
committed
Proof-reading news
1 parent f41593d commit dd590d8

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

NEWS.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
* When mapping an aesthetic to a constant (e.g.
66
`geom_smooth(aes(colour = "loess")))`), the default guide title is the name
7-
of the aesthetic, not the value (#1431).
7+
of the aesthetic (i.e. "colour"), not the value (i.e. "loess") (#1431).
88

99
* `layer()` now accepts a function as the data argument. The function will be
1010
applied to the data passed to the `ggplot()` function and must return a
11-
data.frame (#1527). This is a more general implementation of the deprecated
12-
`subset`.
11+
data.frame (#1527, @thomasp85). This is a more general version of the
12+
deprecated `subset` argument.
1313

1414
* `theme_update()` now uses the `+` operator instead of `%+replace%`, so that
1515
unspecified values will no longer be `NULL`ed out. `theme_replace()`
@@ -24,29 +24,33 @@
2424
`origin` has been deprecated in favour of these arguments.
2525

2626
* `drop` is deprecated in favour of `pad`, which adds extra 0-count bins
27-
at either end. This is needed for frequency polygons. `geom_histogram()`
28-
defaults to `pad = FALSE` which considerably improves the default limits
29-
for the histogram, especially when the bins are big (#1477).
27+
at either end (needed for frequency polygons). `geom_histogram()` defaults
28+
to `pad = FALSE` which considerably improves the default limits for
29+
the histogram, especially when the bins are big (#1477).
3030

31-
* The default algorithm does a better job at picking nice widths and
32-
origins across a wider range of input data.
31+
* The default algorithm does a (somewhat) better job at picking nice widths
32+
and origins across a wider range of input data.
33+
34+
* `bins = n` now gives a histogram with `n` bins, not `n + 1` (#1487).
3335

3436
## Bug fixes
3537

3638
* All `\donttest{}` examples run.
3739

38-
* All `geom_()` and `stat_()` function now have consistent argument order:
39-
data + mapping, geom/stat/position, ..., specific arguments, common arguments
40-
to all layers (#1305). This may break code if you were previously relying on
41-
partial name matching, but in the long-term should make ggplot2 easier to
42-
use. In `geom_density2d()`, this allows you to set the `n` parameter (#1485).
40+
* All `geom_()` and `stat_()` functions now have consistent argument order:
41+
data + mapping, then geom/stat/position, then `...`, then specific arguments,
42+
then arguments common to all layers (#1305). This may break code if you were
43+
previously relying on partial name matching, but in the long-term should make
44+
ggplot2 easier to use. In particular, you can now set the `n` parameter
45+
in `geom_density2d()` without it partially matching `na.rm` (#1485).
4346

4447
* For geoms with both `colour` and `fill`, `alpha` once again only affects
4548
fill (Reverts #1371, #1523). This was causing problems for people.
4649

47-
* `facet_wrap()`/`facet_grid()` works with multiple empty panels of data (#1445).
50+
* `facet_wrap()`/`facet_grid()` works with multiple empty panels of data
51+
(#1445).
4852

49-
* `facet_wrap()` correctly swaps `nrow` and `ncol` for facetting vertically
53+
* `facet_wrap()` correctly swaps `nrow` and `ncol` when facetting vertically
5054
(#1417).
5155

5256
* `ggsave("x.svg")` now uses svglite to produce the svg (#1432).
@@ -58,18 +62,15 @@
5862
* `geom_ribbon()` preserves missing values so they correctly generate a
5963
gap in the ribbon (#1549).
6064

61-
* `geom_histgram(bins = n)` now gives a histogram with `n` bins, not `n + 1`
62-
(#1487).
63-
6465
* `geom_tile()` once again accepts `width` and `height` parameters (#1513).
65-
It uses `draw_key_polygon()` for better legend keys, including
66-
coloured outline (#1484).
66+
It uses `draw_key_polygon()` for better a legend, including a coloured
67+
outline (#1484).
6768

6869
* `layer()` now automatically adds a `na.rm` parameter if none is explicitly
6970
supplied.
7071

7172
* `position_jitterdodge()` now works on all possible dodge aesthetics,
72-
e.g. `color`, `linetype` etc. instead of only based on `fill` (@bleutner)
73+
e.g. `color`, `linetype` etc. instead of only based on `fill` (@bleutner)
7374

7475
* `position = "nudge"` now works (although it doesn't do anything useful)
7576
(#1428).
@@ -86,27 +87,30 @@
8687

8788
* `stat_bin_hex()` and `stat_bin_summary()` now use the same underlying
8889
algorithm so results are consistent (#1383). `stat_bin_hex()` now accepts
89-
a `weight` aesthetic. To be consistent, the output variable from
90-
`stat_bin_hex()` is now value instead of count.
90+
a `weight` aesthetic. To be consistent with related stats, the output variable
91+
from `stat_bin_hex()` is now value instead of count.
9192

92-
* `stat_density()` gains `bw` parameter which makes it easy to get consistent
93-
smoothing between facets for example (@jiho)
93+
* `stat_density()` gains a `bw` parameter which makes it easy to get consistent
94+
smoothing between facets (@jiho)
9495

9596
* `stat-density-2d()` no longer ignores the `h` parameter, and now accepts
96-
`bins` and `binwidth` parameters to control the number of contour levels
97+
`bins` and `binwidth` parameters to control the number of contours
9798
(#1448, @has2k1).
9899

99100
* `stat_ecdf()` does a better job of adding padding to -Inf/Inf, and gains
100101
an argument `pad` to suppress the padding if not needed (#1467).
101102

102103
* `stat_function()` gains an `xlim` parameter (#1528). It once again works
103-
with discrete x axes (#1509).
104+
with discrete x values (#1509).
104105

105106
* `stat_summary()` preserves sorted x order which avoids artefacts when
106107
display results with `geom_smooth()` (#1520).
107108

109+
* All elements should now inherit correctly for all themes except `theme_void()`.
110+
(@Katiedaisey, #1555)
111+
108112
* `theme_void()` was completely void of text but facets and legends still
109-
needed labels. They are now visible (@jiho).
113+
need labels. They are now visible (@jiho).
110114

111115
* You can once again set legend key and height width to unit arithmetic
112116
objects (like `2 * unit(1, "cm")`) (#1437).
@@ -119,8 +123,6 @@
119123
* Fixed a compatibility issue with `ggproto` and R versions prior to 3.1.2.
120124
(#1444)
121125

122-
* All elements should now inherit correctly for all themes except theme_void(). (@Katiedaisey, #1555)
123-
124126
# ggplot2 2.0.0
125127

126128
## Major changes

0 commit comments

Comments
 (0)