-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: could scales::breaks_log
have an argument to return breaks that encompass the full range of the data?
#391
Comments
scales::breaks_log
have an argument to cover the full range of the data?
I'm sorry David: I'm afraid I don't fully understand. Can you give an example of how something is not quite behaving as you'd like and what the result should be instead? |
In the example above, the max of the data is 806. If you use |
I'll close this. Seems too difficult and not that necessary on reflection |
On reflection, this would be super useful if possible. Example code below demonstrating how
range(pressure$pressure)
#> [1] 0.0002 806.0000 scales::number(scales::breaks_extended(3)(range(pressure$pressure)), accuracy = 0.0001)
#> [1] "0.0000" "400.0000" "800.0000" scales::number(scales::breaks_extended(3, only.loose = TRUE)(range(pressure$pressure)), accuracy = 0.0001)
#> [1] "0.0000" "500.0000" "1 000.0000" scales::number(scales::breaks_log(3)(range(pressure$pressure)), accuracy = 0.0001)
#> [1] "0.0001" "0.1000" "100.0000" Created on 2024-07-21 with reprex v2.1.0 This links to #440 and would be useful for all scales::breaks_* functions. When this option is triggerred and it falls back to breaks_extended, it should use |
scales::breaks_log
have an argument to cover the full range of the data?scales::breaks_log
have an argument to return breaks that encompass the full range of the data?
Is it possible for scales::log_breaks to get an argument to where the breaks should cover the full range of the data?
Created on 2023-07-21 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: