scales
scales copied to clipboard
Tools for ggplot2 scales
This PR closes #322 by supplying derivatives of transformation functions and inverses where possible. Specifically, it: - Adds two optional, may-be-`NULL` fields to transform objects: `$d_transform` and `$d_inverse`. These functions...
Hey. I was just testing out the new `scale_cut` argument in version 1.2.0. The documentation suggests a named vector such as ` c(a = 100, b = 1000)` can be...
Some ranges seem to break the calculation of the breaks/tickmarks for these transformed axes: It works for `y
Shouldn't `label_dollar` be renamed `label_currency`? I know it is functionally the same, but such a name would instantly tell the programmer that multiple currencies are probably supported, prompting one to...
There currently isn't any break, label, or trans functions for difftime objects. There are some excellent functions that do this for difftimes in the **bench** package that could be used...
Something that comes up regularly when visualizing analytical distributions on transformed scales is the need to correct the density function for the scale transformation (the so-called "Jacobian correction"), which requires...
Sometimes it's nice to have a 'log'-transformation that also works for negative values to have points more evenly spread-out: ``` ihs
This is a transfer of https://github.com/tidyverse/ggplot2/issues/2454
Packages such as [prismatic](https://github.com/EmilHvitfeldt/prismatic) manipulate color properties such as lightness, saturation, and negation. Adding these effects to `gradient_n_pal()` would allow _convenient_ manipulation of color palettes in [ggplot2](https://github.com/tidyverse/ggplot2) (i.e. `scale_color_viridis_c()`) and...
I'm not sure if this should be fixed, but it does lead to some confusing behaviour (tidyverse/ggplot2#980): ``` r library(scales) trans [1] 4 trans$transform(4) #> [1] 2 trans [1] 4...