Skip to content

First argument to scales is not longer the name of the scale #5535

@eliocamp

Description

@eliocamp

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:

library(ggplot2)
packageVersion("ggplot2")
#> [1] '3.4.4'
ggplot(mpg, aes(displ, hwy)) +
  geom_point(aes(colour = factor(year)), size = 5)  +
  scale_color_brewer("year")

In current dev version, this doesn't work:

library(ggplot2)
packageVersion("ggplot2")
#> [1] '3.4.4.9000'
ggplot(mpg, aes(displ, hwy)) +
  geom_point(aes(colour = factor(year)), size = 5)  +
  scale_color_brewer("year")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorscales 🐍

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions