scales
scales copied to clipboard
Tools for ggplot2 scales
How come having `3353` instead `53` as the first number breaks the function? ``` r library(scales) number(c(53, 903, 71500), scale_cut = cut_short_scale()) #> [1] "53" "903" "72K" ``` ``` r...
This is useful, as it provides another way to get the breaks & labels you want - and it can work well depending on the theme used. I think it'd...
To reproduce: ``` r library(scales) demo_continuous( c(0, 10), transform = "reverse", breaks = breaks_width(1) ) #> scale_x_continuous(transform = "reverse", breaks = breaks_width(1)) #> Error in seq.default(round_any(range[1], size, floor), round_any(range[2], :...
We were discussing `label_wrap` in a recent training session and it was mentioned that it would be useful to 'wrap at' a specific character, rather than just at a specific...
The docs were confusingly referencing the superseded `date_format` `time_format` and `date_short` functions.
I use `only.loose` a lot, but it's hard for me to remember the argument because it doesn't have autocomplete, and it's not in snakecase. Could we add the `labeling::extended` arguments...
Not clear from help that these return a breaks _function_. The label_* functions have good help in this respect.  Maybe something for tidy dev day?
Since the renaming of the {scales} S3 class to "transform", it clashes with e.g. {raylibr}'s S3 class. The `print()` method is defined in both packages, and generates a warning, but...
There is currently support of censor and squish with different treatment of Infinite values - but not for keep. It'd be great if scales could support this. This could work...
This PR aims to fix #421. Briefly, is adds a `signed` argument controlling wether `+` or `-` prefixes should be used. By default, this is applied when negative numbers or...