From 2647b7cb853bf2f1e5124a17259c4d1fcecf0831 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Thu, 31 Oct 2024 09:26:30 +0100 Subject: [PATCH] leave out integration with `transform_exp()` for now --- NEWS.md | 2 +- R/transform-numeric.R | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 4ca48a4a..c16b0636 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,7 +4,7 @@ ranges (#435). * New `label_date_short(leading)` argument to replace leading zeroes (#442) * `breaks_pretty()` will return the input limit when it has no range (#446) -* `transform_exp()` now has more sensible breaks, available in `breaks_exp()` +* `breaks_exp()` now provides more sensible breaks for the exponential transform (@teunbrand, #405). * The scales package now keeps track of known palettes. These can be retrieved using `get_palette()` or registered using `set_palette()` (#396). diff --git a/R/transform-numeric.R b/R/transform-numeric.R index 0b55a1e1..d84b3e46 100644 --- a/R/transform-numeric.R +++ b/R/transform-numeric.R @@ -255,8 +255,7 @@ transform_exp <- function(base = exp(1)) { function(x) base^x, function(x) log(x, base = base), d_transform = function(x) base^x * log(base), - d_inverse = function(x) 1 / x / log(base), - breaks = breaks_exp(), + d_inverse = function(x) 1 / x / log(base) ) }