r-lib / scales

Tools for ggplot2 scales
https://scales.r-lib.org
Other
407 stars 109 forks source link

Feature request: could `scales::breaks_width` have an argument to return breaks that encompass the full range of the data? #440

Open davidhodge931 opened 4 months ago

davidhodge931 commented 4 months ago

It'd be awesome if breaks_width could have an argument to ensure the breaks surround all data.

So, similar to the bounds = TRUE argument in the pretty function (or the only.loose argument in the labeling::extended function).

image

This links to https://github.com/r-lib/scales/issues/391 and would be useful for all scales::breaks_* functions