From 1100164a70aede5b72c303b0f756cf170c20c99a Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Tue, 7 Nov 2023 12:39:42 +0100 Subject: [PATCH] Update news --- NEWS.md | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/NEWS.md b/NEWS.md index 5e2ff322..ebaa1a36 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,16 @@ # scales (development version) +## Better type support +* `rescale(I(x), ...)` and `rescale_mid(I(x), ...)` return `I(x)` unaltered + (@teunbrand, #403). +* Add a rescale method for `difftime` objects (#382) +* Add better support for `difftime` objects. `label_timespan()` adds + functionality for adding correct unit suffix to timespan data, + `breaks_timespan()` adds functionality for finding pleasant breakpoints across + the various bases in time units, while `transform_timespan()` wraps it all + together and provides an alternative to `transform_hms()` (#212) + +## Ranges * `train_continuous()` coerces `new` to numeric before calculating range (@teunbrand, #369). * Training on factor data no longer sorts the range after multiple training @@ -7,34 +18,31 @@ * Attempt to make the sort behavior of the range consistent for character vectors during training. Mixing of character and factor data will still lead to different results depending on the training order. -* Add a rescale method for `difftime` objects (#382) -* `rescale(I(x), ...)` and `rescale_mid(I(x), ...)` return `I(x)` unaltered - (@teunbrand, #403). -* The `scale_cut` argument in `number()` now works as advertised for values - below the lowest cut value (#346) -* Added a new option to the `style_positive` argument in `label_*()` functions. - Setting this to `"space"` will add a figure space in front of the number to - make it easier to align positive and negative values as figure space takes up - the same amount of space as `-` (#366) -* `label_dollar()` has been superseeded by `label_currency()` for clarity (#344) + +## Transformations +* Transformation function have been renamed to `transform_*`-prefixed names + instead of `*_trans`-suffixed names. This allows for a better tab-completion + search of transformations. The S3 class of transformations has been + renamed from `"trans"` to `"transform"`. `new_transform()` replaces + `trans_new()` and `trim_to_domain()` replaces `trans_range()`. All old + functions are kept for posterity. * `transform_sqrt()` no longer returns an inverse for values outside of its domain (#214) -* Add better support for `difftime` objects. `label_timespan()` adds - functionality for adding correct unit suffix to timespan data, - `breaks_timespan()` adds functionality for finding pleasant breakpoints across - the various bases in time units, while `transform_timespan()` wraps it all - together and provides an alternative to `transform_hms()` (#212) * Add an inverse (area) hyperbolic sine transformation `transform_asinh()`, which provides a logarithm-like transformation of a space, but which accommodates negative values (#297) * Correct the domain calculation for `transform_compose()` (@mjskay, #408). * Transformation objects can optionally include the derivatives of the transform and the inverse transform (@mjskay, #322). -* Transformation function have been renamed to `transform_*`-prefixed names - instead of `*_trans`-suffixed names. This allows for a better tab-completion - search of transformations. The S3 class of transformations has been - renamed from `"trans"` to `"transform"`. `new_transform()` replaces - `trans_new()` and `trim_to_domain()` replaces `trans_range()`. + +## Misc +* The `scale_cut` argument in `number()` now works as advertised for values + below the lowest cut value (#346) +* Added a new option to the `style_positive` argument in `label_*()` functions. + Setting this to `"space"` will add a figure space in front of the number to + make it easier to align positive and negative values as figure space takes up + the same amount of space as `-` (#366) +* `label_dollar()` has been superseeded by `label_currency()` for clarity (#344) * Palette functions now have the `pal_`-prefix. The old `_pal`-suffixed versions are kept for backward compatibility.