scales icon indicating copy to clipboard operation
scales copied to clipboard

Tools for ggplot2 scales

Results 66 scales issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi, would it be relevant to have a way to globally define (at the beginning of a script) global options regarding decimal and big marks, that then will be taken...

This suggestion is lifted over from https://github.com/tidyverse/ggplot2/issues/4258. Briefly, `train_discrete()` and `train_continuous()` throw errors that can be hard to debug in some cases. If https://github.com/tidyverse/ggplot2/pull/5086 is merged, that would leave responsibility...

This pull request (on top of #371) extends the definition of a palette by adding attributes to the palette function. These attributes may be ignored if you don't care for...

`colour_ramp` already supports `na.color`, so this pull request just adds the ability to pass it to `gradient_n_pal` and friends - https://github.com/r-lib/scales/blob/b3df2fb6efd5b440377b0699d3830f1082fa3140/R/colour-ramp.R#L35 This is related to: - https://github.com/tidyverse/ggplot2/issues/4989 Proposed NEWS entry:...

This pull request is on top of: - https://github.com/thomasp85/farver/pull/40 It uses the improvements on `farver` to make `scales::alpha()` much faster, avoiding the intermediate step of the numeric matrix. Besides, it...

Is it possible to implement an option to remove leading zeros in `label_date_short()`? ![Untitled1](https://github.com/r-lib/scales/assets/10129222/f7f90882-d2f5-4e42-9090-2b0bfa099099)

When passing `scales::squish()` to the `oob` argument of a scale (say `scale_fill_viridis_c()`) I find that it would often be nice to also transform the breaks and labels as follows: -...

feature

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...

feature

I understand it is used for datetimes. It would also be consistent with the ggplot2::scale_*_datetime naming. Feel free to close, if you feel you have done enough renaming here :)

It'd be useful to have a function to split a scale into breaks of equal size from the limits. I thought maybe it might like it `scales::breaks_equal(n = NULL, ....)`...

feature