scales
scales copied to clipboard
Tools for ggplot2 scales
Currently the examples in the docs for `label_*()` and `breaks_*()` functions use `demo_*()` to showcase what various functions do, but they don't exemplify how to use them in the `scale_*()`...
I have an instance where I'm wanting to use `scales::label_number` and its variants to flexibly format different vectors that may change based on user feedback in an interactive environment. Some...
I've been using `breaks_width(1)` to label count data, where we don't really want breaks that aren't whole numbers (or, more generally, integers). It works well except when the number of...
This PR aims to fix #379. Briefly, it adds a `call` argument to range training that is used to communicate error messages. Short demo: ``` r devtools::load_all("~/packages/scales") #> ℹ Loading...
I'd like to propose a new transformation function that essentially wraps the `rescale()` function. It's definition can be something like the following: ``` r library(scales) transform_rescale [1] 89.6 ``` Created...
The documentation of the Box-Cox transformation is not correct. It confuses the parameters $y$ and $\lambda$. This PR corrects it. To be convinced, read the equations in the Details section....
Aloha. Just discovered scales and want to thank you for that. I find a couple of things to comment on. 1. scale_x_continuous(labels = scales::label_number(accuracy = 0.5), breaks = c(-124, -120,...
The `scales::label_percent()` function and several other formatting functions have a `...` argument, documented as "Other arguments passed on to [base::format()](http://localhost:23621/library/base/help/format)." Normally that's the way I'd document `...`, but in this...
Superseedes #59 While we no longer see errors in ggplot2 for these transformations (the report in the original issue), the placement of breaks with various transformations still leave a lot...
I think it would be great if there was some mechanism in which packages can register a colour palette that then could natively interface with scales/ggplot2. It would save having...