|
4 | 4 |
|
5 | 5 | * When mapping an aesthetic to a constant (e.g.
|
6 | 6 | `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). |
8 | 8 |
|
9 | 9 | * `layer()` now accepts a function as the data argument. The function will be
|
10 | 10 | 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. |
13 | 13 |
|
14 | 14 | * `theme_update()` now uses the `+` operator instead of `%+replace%`, so that
|
15 | 15 | unspecified values will no longer be `NULL`ed out. `theme_replace()`
|
|
24 | 24 | `origin` has been deprecated in favour of these arguments.
|
25 | 25 |
|
26 | 26 | * `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). |
30 | 30 |
|
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). |
33 | 35 |
|
34 | 36 | ## Bug fixes
|
35 | 37 |
|
36 | 38 | * All `\donttest{}` examples run.
|
37 | 39 |
|
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). |
43 | 46 |
|
44 | 47 | * For geoms with both `colour` and `fill`, `alpha` once again only affects
|
45 | 48 | fill (Reverts #1371, #1523). This was causing problems for people.
|
46 | 49 |
|
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). |
48 | 52 |
|
49 |
| -* `facet_wrap()` correctly swaps `nrow` and `ncol` for facetting vertically |
| 53 | +* `facet_wrap()` correctly swaps `nrow` and `ncol` when facetting vertically |
50 | 54 | (#1417).
|
51 | 55 |
|
52 | 56 | * `ggsave("x.svg")` now uses svglite to produce the svg (#1432).
|
|
58 | 62 | * `geom_ribbon()` preserves missing values so they correctly generate a
|
59 | 63 | gap in the ribbon (#1549).
|
60 | 64 |
|
61 |
| -* `geom_histgram(bins = n)` now gives a histogram with `n` bins, not `n + 1` |
62 |
| - (#1487). |
63 |
| - |
64 | 65 | * `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). |
67 | 68 |
|
68 | 69 | * `layer()` now automatically adds a `na.rm` parameter if none is explicitly
|
69 | 70 | supplied.
|
70 | 71 |
|
71 | 72 | * `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) |
73 | 74 |
|
74 | 75 | * `position = "nudge"` now works (although it doesn't do anything useful)
|
75 | 76 | (#1428).
|
|
86 | 87 |
|
87 | 88 | * `stat_bin_hex()` and `stat_bin_summary()` now use the same underlying
|
88 | 89 | 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. |
91 | 92 |
|
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) |
94 | 95 |
|
95 | 96 | * `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 |
97 | 98 | (#1448, @has2k1).
|
98 | 99 |
|
99 | 100 | * `stat_ecdf()` does a better job of adding padding to -Inf/Inf, and gains
|
100 | 101 | an argument `pad` to suppress the padding if not needed (#1467).
|
101 | 102 |
|
102 | 103 | * `stat_function()` gains an `xlim` parameter (#1528). It once again works
|
103 |
| - with discrete x axes (#1509). |
| 104 | + with discrete x values (#1509). |
104 | 105 |
|
105 | 106 | * `stat_summary()` preserves sorted x order which avoids artefacts when
|
106 | 107 | display results with `geom_smooth()` (#1520).
|
107 | 108 |
|
| 109 | +* All elements should now inherit correctly for all themes except `theme_void()`. |
| 110 | + (@Katiedaisey, #1555) |
| 111 | + |
108 | 112 | * `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). |
110 | 114 |
|
111 | 115 | * You can once again set legend key and height width to unit arithmetic
|
112 | 116 | objects (like `2 * unit(1, "cm")`) (#1437).
|
|
119 | 123 | * Fixed a compatibility issue with `ggproto` and R versions prior to 3.1.2.
|
120 | 124 | (#1444)
|
121 | 125 |
|
122 |
| -* All elements should now inherit correctly for all themes except theme_void(). (@Katiedaisey, #1555) |
123 |
| - |
124 | 126 | # ggplot2 2.0.0
|
125 | 127 |
|
126 | 128 | ## Major changes
|
|
0 commit comments