How do I derive log breaks where the min and max break cover the range of the data?
In the example below, scales::breaks_log(3) produces a max break that is less than the max of the data. I would like to ensure it is always more
library(tidyverse)
range(pressure$pressure)
#> [1] 0.0002 806.0000
scales::breaks_log(7)(pressure$pressure)
#> [1] 1e-04 1e-03 1e-02 1e-01 1e+00 1e+01 1e+02 1e+03
scales::breaks_log(3)(pressure$pressure)
#> [1] 1e-04 1e-01 1e+02
Created on 2023-07-21 with reprex v2.0.2