Skip to content

Commit

Permalink
Update news
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Nov 7, 2023
1 parent da0fd33 commit 1100164
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
# 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
passes (#383)
* 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.

Expand Down

0 comments on commit 1100164

Please sign in to comment.