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

This PR adds a third option for `style_positive`. If `style_positive = "space"`, positive values are prepended by `\u2007` (see https://www.fileformat.info/info/unicode/char/2007/index.htm). `\u2007` is a "figure space" -- a blank space the...

`percent()` and `percent_format()` returned formatted values, while the new function they are superseded by, `label_percent()` returns a function. While this works for the labels arguments in ggplot2, it doesn't when...

Under the current build, the long labels must render as %b-%Y. However, it would be good to specify that the long labels should go %Y-%b. For example ``` # Data...

Credit to Simon Woodwood for this function https://community.rstudio.com/t/how-to-automatically-skip-some-x-labels/65702/2 ``` library(palmerpenguins) library(tidyverse) label_second

addresses #356: reflects pass through `label_number` first (i.e. can also include style_+/-) also update internals of label_percent to skip superceded function.

Saw #297, and seemed easy enough to fix while I was looking at that area anyway.

The domain of a q... distribution function is a probability, aka (0,1) Alternatively, sensible to exclude domain from the arguments, and simply set it in `trans_new` without allowing user intervention.

Error occurs when supplying `scale_cut` argument `&&` number input actually cut (i.e., `1,000 -> 1K`). For example, no error thrown when number input does not need cutting: ``` r scales::label_number(scale_cut...

This pull request resolves #413, implementing the fix proposed by @jbengler ([link](https://github.com/r-lib/scales/issues/413#issuecomment-1859304601)) Behaviour in 1.3.0: ``` > scales::label_number(scale_cut = scales::cut_short_scale())(c(0,500,1500,2000,2500)) Error in break_suffix[bad_break][improved_break & !power10_break] scales::label_number(scale_cut = scales::cut_short_scale())(c(0,500,1500,2000,2500)) [1] "0"...