Skip to content

scale_colour/fill aesthetic only works for British spelling #2674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jvcasillas opened this issue May 30, 2018 · 2 comments
Closed

scale_colour/fill aesthetic only works for British spelling #2674

jvcasillas opened this issue May 30, 2018 · 2 comments

Comments

@jvcasillas
Copy link

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

@clauswilke
Copy link
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.

@lock
Copy link

lock bot commented Nov 26, 2018

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/

@lock lock bot locked and limited conversation to collaborators Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants