Skip to content

scale_colour/fill aesthetic only works for British spelling #2674

Closed

Description

@jvcasillas

The latest addition of aesthetics to scale_fill_* and scale_colour_* are fantastic, but the colour geom only works with the British spelling.

ggplot(iris, aes(x = Sepal.Length, y = Petal.Length, color = Sepal.Length, fill = Petal.Length)) +
  geom_point(shape = 21, size = 3, stroke = 2) +
  scale_color_viridis_c(name = "Length",
                         option = "B", aesthetics = c("color", "fill"))

Produces...

screen shot 2018-05-30 at 09 26 06

When the desired output is...

screen shot 2018-05-30 at 09 26 41

Activity

  1. clauswilke commented on May 30, 2018

    @clauswilke
    Member

    Yes, that's a limitation of the current code. The required changes are a bit more involved and won't make it into 2.3.0. I already opened an issue about this: #2649, so I'll close this one.

  2. lock commented on Nov 26, 2018

    @lock

    This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

  3. locked and limited conversation to collaborators on Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions