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
I think the deprecation of the scale_name argument now lets that deprecated argument become the first argument that ... now feeds into. I agree with you that this isn't ideal. There are three ways I can see this solved:
Make the first argument to every scale explicitly the name argument.
Move the deprecated scale_name argument to one of the last arguments. I don't know how many scale extensions use positional versus named argument declarations and if this will be harmful. edit: it seems pretty common to match by position.
Explicitly declare scale_name = lifecycle::deprecated() in every call to the constructor so that feeding ... gets name back as the first argument.
I'm not sure which approach will be preferable.
Until that is figured out, you can fall back to using explicit scale_color_brewer(name = "year") or implicit scale_color_brewer(,"year").
Until this is figured out one can fall back to install an older version remotes::install_github("tidyverse/ggplot2@67bb3bbea8f51666b13d9ca30108d97e898c1ecd") . ( Updating my whole (analysis) code base is not an option for me atm. )
I am probably wrong here, but it seems to be that neither of the three options are backwards compatible in all cases?
It further seems that there are two separate issues: scale_* functions (which did not allow to specify scale_name) and *_scale functions....
This seems to be a breaking change in the current development version.
In ggplot2 version 3.4.4 (latest tag),
scale_color_brewer("year")
would set"year"
as the name of the scale:In current dev version, this doesn't work:
The text was updated successfully, but these errors were encountered: