You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ggplot2 we're considering to let AsIs vectors be unresponsive to scales in tidyverse/ggplot2#5477.
What would work really well for that PR, is if {scales} would define a recale method for AsIs objects that returns input unaltered.
My proposal is simply the following:
rescale.AsIs <- function(x, to, from, ...) {
x
}
Currently, no such method exists, so we're unlikely to be harming any existing code out there:
scales::rescale(I(1:3))
#> Error in UseMethod("rescale"): no applicable method for 'rescale' applied to an object of class "AsIs"
In ggplot2 we're considering to let
AsIs
vectors be unresponsive to scales in tidyverse/ggplot2#5477.What would work really well for that PR, is if {scales} would define a
recale
method forAsIs
objects that returns input unaltered.My proposal is simply the following:
Currently, no such method exists, so we're unlikely to be harming any existing code out there:
Created on 2023-10-31 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: