|
1 | 1 | # ggplot2 2.0.0.9000
|
2 | 2 |
|
3 |
| -* `stat_bin_hex()` and `stat_bin_summary()` now use the same underlying |
4 |
| - algorithm so results are consistent (#1383). `stat_bin_hex()` now accepts |
5 |
| - a `weight` aesthetic. To be consistent, the output variable from |
6 |
| - `stat_bin_hex()` is now value instead of count. |
| 3 | +## New features |
7 | 4 |
|
8 |
| -* `facet_wrap()` correctly swaps `nrow` and `ncol` for facetting vertically |
9 |
| - (#1417). |
10 |
| - |
11 |
| -* For geoms with both `colour` and `fill`, `alpha` once again only affects |
12 |
| - fill (Reverts #1371, #1523). This was causing problems for people. |
13 |
| - |
14 |
| -* `geom_path()` knows that "solid" (not just 1) represents a solid line (#1534). |
| 5 | +* When mapping an aesthetic to a constant (e.g. |
| 6 | + `geom_smooth(aes(colour = "loess")))`), the default guide title is the name |
| 7 | + of the aesthetic, not the value (#1431). |
15 | 8 |
|
16 |
| -* `layer()` now automatically adds a `na.rm` parameter if none is explicitly |
17 |
| - supplied. |
| 9 | +* `layer()` now accepts a function as the data argument. The function will be |
| 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`. |
18 | 13 |
|
19 | 14 | * `theme_update()` now uses the `+` operator instead of `%+replace%`, so that
|
20 | 15 | unspecified values will no longer be `NULL`ed out. `theme_replace()`
|
21 | 16 | preserves the old behaviour if desired (@oneillkza, #1519).
|
22 | 17 |
|
23 |
| -* `layer()` now accepts a function as the data argument. The function will be |
24 |
| - applied to the data passed to the `ggplot()` function and must return a |
25 |
| - data.frame (#1527). |
26 |
| - |
27 |
| -* `scale_size()` warns when used with categorical data. |
28 |
| - |
29 |
| -* `scale_size()`, `scale_colour()`, and `scale_fill()` gain date and date-time |
30 |
| - variants (#1526). |
31 |
| - |
32 |
| -* `stat_function()` gains an `xlim` parameter (#1528). |
33 |
| - |
34 |
| -* `stat_summary()` preserves sorted x order which avoids artefacts when |
35 |
| - display results with `geom_smooth()` (#1520). |
36 |
| - |
37 |
| -* All `geom_()` and `stat_()` function now have consistent argument order: |
38 |
| - data + mapping, geom/stat/position, ..., specific arguments, common arguments |
39 |
| - to all layers (#1305). This may break code if you were previously relying on |
40 |
| - partial name matching, but in the long-term should make ggplot2 easier to |
41 |
| - use. |
42 |
| - |
43 |
| -* `stat_ecdf()` does a better job of adding padding to -Inf/Inf, and gains |
44 |
| - an argument `pad` to suppress the padding if not needed (#1467). |
45 |
| - |
46 |
| -* `theme_void()` was completely void of text but facets and legends still |
47 |
| - needed labels. They are now visible (@jiho). |
48 |
| - |
49 |
| -* Multipanel empty data is correctly plotted, rather than throwing an unhelpful |
50 |
| - error (#1445). |
51 |
| - |
52 |
| -* Eliminate spurious warning if you have a layer with no data and no aesthetics |
53 |
| - (#1451). |
54 |
| - |
55 |
| -* `position = "nudge"` now works (although it doesn't do anything useful) |
56 |
| - (#1428). |
57 |
| - |
58 |
| -* You can once again set legend key and height width to unit arithmetic |
59 |
| - objects (like `2 * unit(1, "cm")`) (#1437). |
60 |
| - |
61 |
| -* When mapping an aesthetic to a constant (e.g. |
62 |
| - `geom_smooth(aes(colour = "loess")))`), the default guide title is the name |
63 |
| - of the aesthetic, not the value (#1431). |
64 |
| - |
65 |
| -* `ggsave("x.svg")` now uses svglite to produce the svg (#1432). |
66 |
| - |
67 | 18 | * `stat_bin()` has been overhauled to use the same algorithm as ggvis, which
|
68 | 19 | has been considerably improved thanks to the advice of Randy Prium (@rpruim).
|
69 | 20 | This includes:
|
|
80 | 31 | * The default algorithm does a better job at picking nice widths and
|
81 | 32 | origins across a wider range of input data.
|
82 | 33 |
|
83 |
| -* `geom_tile()` uses `draw_key_polygon()` for better legend keys, including |
84 |
| - coloured outline (#1484). |
| 34 | +## Bug fixes |
| 35 | + |
| 36 | +* All `\donttest{}` examples run. |
85 | 37 |
|
86 |
| -* The position of `...` in `geom_density2d()` has been adjusted so you can |
87 |
| - set the `n` parameter (#1485). |
| 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). |
88 | 43 |
|
89 |
| -* The default scale for columns of class "AsIs" is now "identity" (#1518). |
| 44 | +* For geoms with both `colour` and `fill`, `alpha` once again only affects |
| 45 | + fill (Reverts #1371, #1523). This was causing problems for people. |
| 46 | + |
| 47 | +* `facet_wrap()`/`facet_grid()` works with multiple empty panels of data (#1445). |
| 48 | + |
| 49 | +* `facet_wrap()` correctly swaps `nrow` and `ncol` for facetting vertically |
| 50 | + (#1417). |
| 51 | + |
| 52 | +* `ggsave("x.svg")` now uses svglite to produce the svg (#1432). |
90 | 53 |
|
91 | 54 | * `geom_boxplot()` now understands `outlier.color` (#1455).
|
92 | 55 |
|
| 56 | +* `geom_path()` knows that "solid" (not just 1) represents a solid line (#1534). |
| 57 | + |
93 | 58 | * `geom_histgram(bins = n)` now gives a histogram with `n` bins, not `n + 1`
|
94 | 59 | (#1487).
|
95 | 60 |
|
96 |
| -* `geom_tile()` once again accepts `width` and `height` parameters (#1513). |
97 |
| - |
98 |
| -* Add access to `bw` argument of `density` in `stat_density`, which makes |
99 |
| - it easy to get consistent smoothing between facets for example (@jiho) |
100 |
| - |
101 |
| -* `stat_function()` once again works with discrete x axes (#1509). |
| 61 | +* `geom_tile()` once again accepts `width` and `height` parameters (#1513). |
| 62 | + It uses `draw_key_polygon()` for better legend keys, including |
| 63 | + coloured outline (#1484). |
102 | 64 |
|
103 |
| -* All `\donttest{}` examples run. |
| 65 | +* `layer()` now automatically adds a `na.rm` parameter if none is explicitly |
| 66 | + supplied. |
104 | 67 |
|
105 | 68 | * `position_jitterdodge()` now works on all possible dodge aesthetics,
|
106 | 69 | e.g. `color`, `linetype` etc. instead of only based on `fill` (@bleutner)
|
107 | 70 |
|
| 71 | +* `position = "nudge"` now works (although it doesn't do anything useful) |
| 72 | + (#1428). |
| 73 | + |
| 74 | +* The default scale for columns of class "AsIs" is now "identity" (#1518). |
| 75 | + |
| 76 | +* `scale_size()` warns when used with categorical data. |
| 77 | + |
| 78 | +* `scale_size()`, `scale_colour()`, and `scale_fill()` gain date and date-time |
| 79 | + variants (#1526). |
| 80 | + |
| 81 | +* `stat_bin_hex()` and `stat_bin_summary()` now use the same underlying |
| 82 | + algorithm so results are consistent (#1383). `stat_bin_hex()` now accepts |
| 83 | + a `weight` aesthetic. To be consistent, the output variable from |
| 84 | + `stat_bin_hex()` is now value instead of count. |
| 85 | + |
| 86 | +* `stat_density()` gains `bw` parameter which makes it easy to get consistent |
| 87 | + smoothing between facets for example (@jiho) |
| 88 | + |
| 89 | +* `stat-density-2d()` no longer ignores the `h` parameter, and now accepts |
| 90 | + `bins` and `binwidth` parameters to control the number of contour levels |
| 91 | + (#1448, @has2k1). |
| 92 | + |
| 93 | +* `stat_ecdf()` does a better job of adding padding to -Inf/Inf, and gains |
| 94 | + an argument `pad` to suppress the padding if not needed (#1467). |
| 95 | + |
| 96 | +* `stat_function()` gains an `xlim` parameter (#1528). It once again works |
| 97 | + with discrete x axes (#1509). |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +* `stat_summary()` preserves sorted x order which avoids artefacts when |
| 102 | + display results with `geom_smooth()` (#1520). |
| 103 | + |
| 104 | +* `theme_void()` was completely void of text but facets and legends still |
| 105 | + needed labels. They are now visible (@jiho). |
| 106 | + |
| 107 | +* Eliminate spurious warning if you have a layer with no data and no aesthetics |
| 108 | + (#1451). |
| 109 | + |
| 110 | +* You can once again set legend key and height width to unit arithmetic |
| 111 | + objects (like `2 * unit(1, "cm")`) (#1437). |
| 112 | + |
108 | 113 | * Removed a superfluous comma in `theme-defaults.r` code (@jschoeley)
|
109 | 114 |
|
110 | 115 | * Fixed a compatibility issue with `ggproto` and R versions prior to 3.1.2.
|
111 | 116 | (#1444)
|
112 | 117 |
|
113 |
| -* `stat-density-2d()` no longer ignores the `h` parameter. |
114 |
| - |
115 |
| -* `stat-density-2d()` now accepts `bins` and `binwidth` parameters |
116 |
| - to control the number of contour levels (#1448, @has2k1). |
117 |
| - |
118 | 118 | # ggplot2 2.0.0
|
119 | 119 |
|
120 | 120 | ## Major changes
|
|
0 commit comments