|
1 | 1 | # ggplot2 (development version)
|
2 | 2 |
|
| 3 | +* New parameters for `geom_label()` (@teunbrand and @steveharoz, #5365): |
| 4 | + * The `linewidth` aesthetic is now applied and replaces the `label.size` |
| 5 | + argument. |
| 6 | + * The `linetype` aesthetic is now applied. |
| 7 | + * New `border.colour` argument to set the colour of borders. |
| 8 | + * New `text.colour` argument to set the colour of text. |
| 9 | +* New `element_point()` and `element_polygon()` that can be given to |
| 10 | + `theme(point, polygon)` as an extension point (@teunbrand, #6248). |
| 11 | +* Turned off fallback for `size` to `linewidth` translation in |
| 12 | + `geom_bar()`/`geom_col()` (#4848). |
| 13 | +* `coord_radial()` now displays no axis instead of throwing an error when |
| 14 | + a scale has no breaks (@teunbrand, #6271). |
| 15 | +* The `fatten` argument has been deprecated in `geom_boxplot()`, |
| 16 | + `geom_crossbar()` and `geom_pointrange()` (@teunbrand, #4881). |
| 17 | +* Axis labels are now preserved better when using `coord_sf(expand = TRUE)` and |
| 18 | + graticule lines are straight but do not meet the edge (@teunbrand, #2985). |
| 19 | +* Attempt to boost detail in `coord_polar()` and `coord_radial()` near the |
| 20 | + center (@teunbrand, #5023) |
| 21 | +* Scale names, guide titles and aesthetic labels can now accept functions |
| 22 | + (@teunbrand, #4313) |
| 23 | +* Binned scales with zero-width data expand the default limits by 0.1 |
| 24 | + (@teunbrand, #5066) |
| 25 | +* New default `geom_qq_line(geom = "abline")` for better clipping in the |
| 26 | + vertical direction. In addition, `slope` and `intercept` are new computed |
| 27 | + variables in `stat_qq_line()` (@teunbrand, #6087). |
| 28 | +* Position adjustments can now have auxiliary aesthetics (@teunbrand). |
| 29 | + * `position_nudge()` gains `nudge_x` and `nudge_y` aesthetics (#3026, #5445). |
| 30 | + * `position_dodge()` gains `order` aesthetic (#3022, #3345) |
| 31 | +* More stability for vctrs-based palettes (@teunbrand, #6117). |
| 32 | +* Fixed regression in `guide_bins(reverse = TRUE)` (@teunbrand, #6183). |
| 33 | +* New function family for setting parts of a theme. For example, you can now use |
| 34 | + `theme_sub_axis(line, text, ticks, ticks.length, line)` as a substitute for |
| 35 | + `theme(axis.line, axis.text, axis.ticks, axis.ticks.length, axis.line)`. This |
| 36 | + should allow slightly terser and more organised theme declarations |
| 37 | + (@teunbrand, #5301). |
| 38 | +* `scale_{x/y}_discrete(continuous.limits)` is a new argument to control the |
| 39 | + display range of discrete scales (@teunbrand, #4174, #6259). |
| 40 | +* `geom_ribbon()` now appropriately warns about, and removes, missing values |
| 41 | + (@teunbrand, #6243). |
| 42 | +* `guide_*()` can now accept two inside legend theme elements: |
| 43 | + `legend.position.inside` and `legend.justification.inside`, allowing inside |
| 44 | + legends to be placed at different positions. Only inside legends with the same |
| 45 | + position and justification will be merged (@Yunuuuu, #6210). |
| 46 | +* New stat: `stat_manual()` for arbitrary computations (@teunbrand, #3501) |
| 47 | +* Reversal of a dimension, typically 'x' or 'y', is now controlled by the |
| 48 | + `reverse` argument in `coord_cartesian()`, `coord_fixed()`, `coord_radial()` |
| 49 | + and `coord_sf()`. In `coord_radial()`, this replaces the older `direction` |
| 50 | + argument (#4021, @teunbrand). |
| 51 | +* `coord_radial()` displays minor gridlines now (@teunbrand). |
| 52 | +* (internal) `continuous_scale()` and `binned_scale()` sort the `limits` |
| 53 | + argument internally (@teunbrand). |
| 54 | +* Theme margins can have NA-units to inherit from parent elements. The new |
| 55 | + function `margin_part()` has NA-units as default (@teunbrand, #6115) |
| 56 | +* New `margin_auto()` specification for theme margins. |
| 57 | +* New argument `labs(dictionary)` to label based on variable name rather than |
| 58 | + based on aesthetic (@teunbrand, #5178) |
| 59 | +* Fixed bug in out-of-bounds binned breaks (@teunbrand, #6054) |
| 60 | +* Binned guides now accept expressions as labels (@teunbrand, #6005) |
| 61 | +* (internal) `Scale$get_labels()` format expressions as lists. |
3 | 62 | * In non-orthogonal coordinate systems (`coord_sf()`, `coord_polar()` and
|
4 | 63 | `coord_radial()`), using 'AsIs' variables escape transformation when
|
5 | 64 | both `x` and `y` is an 'AsIs' variable (@teunbrand, #6205).
|
|
22 | 81 | (@teunbrand, #4320)
|
23 | 82 | * `geom_boxplot()` gains additional arguments to style the colour, linetype and
|
24 | 83 | linewidths of the box, whiskers, median line and staples (@teunbrand, #5126)
|
| 84 | +* `geom_violin()` gains additional arguments to style the colour, linetype and |
| 85 | + linewidths of the quantiles, which replace the now-deprecated `draw_quantiles` |
| 86 | + argument (#5912). |
| 87 | +* (breaking) `geom_violin(quantiles)` now has actual quantiles based on |
| 88 | + the data, rather than inferred quantiles based on the computed density. The |
| 89 | + `quantiles` parameter that replaces `draw_quantiles` now belongs to |
| 90 | + `stat_ydensity()` instead of `geom_violin()` (@teunbrand, #4120). |
25 | 91 | * (internal) Using `after_scale()` in the `Geom*$default_aes()` field is now
|
26 | 92 | evaluated in the context of data (@teunbrand, #6135)
|
27 | 93 | * Fixed bug where binned scales wouldn't simultaneously accept transformations
|
|
210 | 276 | * The ellipsis argument is now checked in `fortify()`, `get_alt_text()`,
|
211 | 277 | `labs()` and several guides (@teunbrand, #3196).
|
212 | 278 | * `stat_summary_bin()` no longer ignores `width` parameter (@teunbrand, #4647).
|
213 |
| -* Added `keep.zeroes` argument to `stat_bin()` (@teunbrand, #3449) |
| 279 | +* Reintroduced `drop` argument to `stat_bin()` (@teunbrand, #3449) |
| 280 | +* (internal) removed barriers for using 2D structures as aesthetics |
| 281 | + (@teunbrand, #4189). |
214 | 282 | * `coord_sf()` no longer errors when dealing with empty graticules (@teunbrand, #6052)
|
| 283 | +* Added `theme_transparent()` with transparent backgrounds (@topepo). |
| 284 | +* New theme elements `palette.{aes}.discrete` and `palette.{aes}.continuous`. |
| 285 | + Theme palettes replace palettes in scales where `palette = NULL`, which is |
| 286 | + the new default in many scales (@teunbrand, #4696). |
| 287 | +* `guide_axis()` no longer reserves space for blank ticks |
| 288 | + (@teunbrand, #4722, #6069). |
| 289 | +* `geom_abline()` clips to the panel range in the vertical direction too |
| 290 | + (@teunbrand, #6086). |
| 291 | +* Added `panel.widths` and `panel.heights` to `theme()` (#5338, @teunbrand). |
| 292 | +* Standardised the calculation of `width`, which are now implemented as |
| 293 | + aesthetics (@teunbrand, #2800). |
| 294 | +* Stricter check on `register_theme_elements(element_tree)` (@teunbrand, #6162) |
| 295 | +* Added `weight` aesthetic for `stat_ellipse()` (@teunbrand, #5272) |
| 296 | +* Fixed a bug where the `guide_custom(order)` wasn't working (@teunbrand, #6195) |
| 297 | +* All binning stats now use the `boundary`/`center` parametrisation rather |
| 298 | + than `origin`, following in `stat_bin()`'s footsteps (@teunbrand). |
| 299 | +* `stat_summary_2d()` and `stat_bin_2d()` now deal with zero-range data |
| 300 | + more elegantly (@teunbrand, #6207). |
| 301 | +* Munching in `coord_polar()` and `coord_radial()` now adds more detail, |
| 302 | + particularly for data-points with a low radius near the center |
| 303 | + (@teunbrand, #5023). |
| 304 | +* All scales now expose the `aesthetics` parameter (@teunbrand, #5841) |
| 305 | +* New `theme(legend.key.justification)` to control the alignment of legend keys |
| 306 | + (@teunbrand, #3669). |
| 307 | +* Added `scale_{x/y}_time(date_breaks, date_minor_breaks, date_labels)` |
| 308 | + (@teunbrand, #4335). |
215 | 309 |
|
216 | 310 | # ggplot2 3.5.1
|
217 | 311 |
|
|
0 commit comments