scales
scales copied to clipboard
Tools for ggplot2 scales
I most often work with numbers that are changes in percentages (e.g., -2%, +5%). I mostly use `label_percent()` for this. However, I'd like to be able to use the `style_positive`...
Best, --rob
Before with `theme(axis_text = element_text(vjust = 0.5)`: After with `theme(axis_text = element_text(vjust = 0.5)`: Haven't done a pull request to another library before, so apologies if I've done something incorrect
This is really for fun, but I thought it might conceivably fit in the scales package. It converts values from integers to list items using a cute interface: * `labels_itemized("(a)")(1:x)`...
Currently, `label_wrap()` only splits a string if there are spaces, however, there is no way (as far as I can tell) to force wrapping even if there is no space...
In label_date_short, can all days, months and years be lined up (regardless of the vjust selected)?
`scale_date_short` would look better if all the date labels of the same level lined up. So in the example below, the "Oct" and "Apr" labels would be in line with...
I'm wanting to create a plot that censors values below the lower limit but squishes values above an upper limit. As far as I can tell, this is not possible...
This PR fixes 2 typos in the README. Testing fails (locally at least) due to #347.
Hi, testing fails on my machine, due to a different locale that prints out "Okt" instead of "Oct", the latter of which is expected in the snapshot. This concerns line...
Should it be possible to switch `percent()` for `label_percent()` inside `geom_label()` per the examples below? ``` r library(tidyverse) library(scales, warn.conflicts = FALSE) tribble(~name, ~pct, "A", 0.1, "B", 0.2) |> ggplot(aes(name,...