|
1 | 1 | # ggplot2 (development version)
|
2 | 2 |
|
| 3 | +* `guide_*()` can now accept two inside legend theme elements: |
| 4 | + `legend.position.inside` and `legend.justification.inside`, allowing inside |
| 5 | + legends to be placed at different positions. Only inside legends with the same |
| 6 | + position and justification will be merged (@Yunuuuu, #6210). |
| 7 | +* New stat: `stat_manual()` for arbitrary computations (@teunbrand, #3501) |
| 8 | +* Reversal of a dimension, typically 'x' or 'y', is now controlled by the |
| 9 | + `reverse` argument in `coord_cartesian()`, `coord_fixed()`, `coord_radial()` |
| 10 | + and `coord_sf()`. In `coord_radial()`, this replaces the older `direction` |
| 11 | + argument (#4021, @teunbrand). |
| 12 | +* `coord_radial()` displays minor gridlines now (@teunbrand). |
| 13 | +* (internal) `continuous_scale()` and `binned_scale()` sort the `limits` |
| 14 | + argument internally (@teunbrand). |
| 15 | +* Theme margins can have NA-units to inherit from parent elements. The new |
| 16 | + function `margin_part()` has NA-units as default (@teunbrand, #6115) |
| 17 | +* New `margin_auto()` specification for theme margins. |
| 18 | +* New argument `labs(dictionary)` to label based on variable name rather than |
| 19 | + based on aesthetic (@teunbrand, #5178) |
| 20 | +* Fixed bug in out-of-bounds binned breaks (@teunbrand, #6054) |
| 21 | +* Binned guides now accept expressions as labels (@teunbrand, #6005) |
| 22 | +* (internal) `Scale$get_labels()` format expressions as lists. |
| 23 | +* In non-orthogonal coordinate systems (`coord_sf()`, `coord_polar()` and |
| 24 | + `coord_radial()`), using 'AsIs' variables escape transformation when |
| 25 | + both `x` and `y` is an 'AsIs' variable (@teunbrand, #6205). |
| 26 | +* The following methods have been deprecated: `fortify.lm()`, `fortify.glht()`, |
| 27 | + `fortify.confint.glht()`, `fortify.summary.glht()` and `fortify.cld()`. It |
| 28 | + is recommend to use `broom::augment()` and `broom::tidy()` instead |
| 29 | + (@teunbrand, #3816). |
| 30 | +* Custom and raster annotation now respond to scale transformations, and can |
| 31 | + use AsIs variables for relative placement (@teunbrand based on |
| 32 | + @yutannihilation's prior work, #3120) |
| 33 | +* When discrete breaks have names, they'll be used as labels by default |
| 34 | + (@teunbrand, #6147). |
| 35 | +* The helper function `is.waiver()` is now exported to help extensions to work |
| 36 | + with `waiver()` objects (@arcresu, #6173). |
| 37 | +* Date(time) scales now throw appropriate errors when `date_breaks`, |
| 38 | + `date_minor_breaks` or `date_labels` are not strings (@RodDalBen, #5880) |
| 39 | +* `geom_errorbarh()` is deprecated in favour of |
| 40 | + `geom_errorbar(orientation = "y")` (@teunbrand, #5961). |
| 41 | +* `geom_contour()` should be able to recognise a rotated grid of points |
| 42 | + (@teunbrand, #4320) |
| 43 | +* `geom_boxplot()` gains additional arguments to style the colour, linetype and |
| 44 | + linewidths of the box, whiskers, median line and staples (@teunbrand, #5126) |
| 45 | +* (internal) Using `after_scale()` in the `Geom*$default_aes()` field is now |
| 46 | + evaluated in the context of data (@teunbrand, #6135) |
| 47 | +* Fixed bug where binned scales wouldn't simultaneously accept transformations |
| 48 | + and function-limits (@teunbrand, #6144). |
| 49 | +* Fixed bug where the `ggplot2::`-prefix did not work with `stage()` |
| 50 | + (@teunbrand, #6104). |
| 51 | +* New `get_labs()` function for retrieving completed plot labels |
| 52 | + (@teunbrand, #6008). |
| 53 | +* Built-in `theme_*()` functions now have `ink` and `paper` arguments to control |
| 54 | + foreground and background colours respectively (@teunbrand) |
| 55 | +* The `summary()` method for ggplots is now more terse about facets |
| 56 | + (@teunbrand, #5989). |
| 57 | +* `guide_bins()`, `guide_colourbar()` and `guide_coloursteps()` gain an `angle` |
| 58 | + argument to overrule theme settings, similar to `guide_axis(angle)` |
| 59 | + (@teunbrand, #4594). |
| 60 | +* `coord_*(expand)` can now take a logical vector to control expansion at any |
| 61 | + side of the panel (top, right, bottom, left) (@teunbrand, #6020) |
3 | 62 | * (Breaking) The defaults for all geoms can be set at one in the theme.
|
4 | 63 | (@teunbrand based on pioneering work by @dpseidel, #2239)
|
5 | 64 | * A new `theme(geom)` argument is used to track these defaults.
|
|
22 | 81 | class through new `Coord$draw_panel()` method.
|
23 | 82 | * `theme(strip.clip)` now defaults to `"on"` and is independent of Coord
|
24 | 83 | clipping (@teunbrand, 5952).
|
25 |
| -* (internal) rearranged the code of `Facet$draw_paensl()` method (@teunbrand). |
| 84 | +* (internal) rearranged the code of `Facet$draw_panels()` method (@teunbrand). |
26 | 85 | * Axis labels are now justified across facet panels (@teunbrand, #5820)
|
27 | 86 | * Fixed bug in `stat_function()` so x-axis title now produced automatically
|
28 | 87 | when no data added. (@phispu, #5647).
|
|
168 | 227 | * `theme_classic()` now has black ticks and text instead of dark gray. In
|
169 | 228 | addition, `theme_classic()`'s axis line end is `"square"` (@teunbrand, #5978).
|
170 | 229 | * {tibble} is now suggested instead of imported (@teunbrand, #5986)
|
| 230 | +* The ellipsis argument is now checked in `fortify()`, `get_alt_text()`, |
| 231 | + `labs()` and several guides (@teunbrand, #3196). |
| 232 | +* `stat_summary_bin()` no longer ignores `width` parameter (@teunbrand, #4647). |
| 233 | +* Added `keep.zeroes` argument to `stat_bin()` (@teunbrand, #3449) |
| 234 | +* (internal) removed barriers for using 2D structures as aesthetics |
| 235 | + (@teunbrand, #4189). |
| 236 | +* `coord_sf()` no longer errors when dealing with empty graticules (@teunbrand, #6052) |
| 237 | +* Added `theme_transparent()` with transparent backgrounds (@topepo). |
| 238 | +* New theme elements `palette.{aes}.discrete` and `palette.{aes}.continuous`. |
| 239 | + Theme palettes replace palettes in scales where `palette = NULL`, which is |
| 240 | + the new default in many scales (@teunbrand, #4696). |
| 241 | +* `guide_axis()` no longer reserves space for blank ticks |
| 242 | + (@teunbrand, #4722, #6069). |
| 243 | +* `geom_abline()` clips to the panel range in the vertical direction too |
| 244 | + (@teunbrand, #6086). |
| 245 | +* Added `panel.widths` and `panel.heights` to `theme()` (#5338, @teunbrand). |
171 | 246 |
|
172 | 247 | # ggplot2 3.5.1
|
173 | 248 |
|
@@ -214,6 +289,7 @@ documentation updates.
|
214 | 289 | * `annotate()` now warns about `stat` or `position` arguments (@teunbrand, #5151)
|
215 | 290 | * `guide_coloursteps(even.steps = FALSE)` now works with discrete data that has
|
216 | 291 | been formatted by `cut()` (@teunbrand, #3877).
|
| 292 | +* `ggsave()` now offers to install svglite if needed (@eliocamp, #6166). |
217 | 293 |
|
218 | 294 | # ggplot2 3.5.0
|
219 | 295 |
|
|
0 commit comments