-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Option to make default colour schemes accessible? #4696
Comments
Related: #4466 |
Proposal in #5946 is to run this through the theme, so # From #5946
devtools::load_all("~/packages/ggplot2")
#> ℹ Loading ggplot2
set_theme(
theme_gray() +
theme(
palette.colour.continuous = pal_div_gradient(),
palette.colour.discrete = palette.colors(7)
)
)
p <- ggplot(mpg, aes(displ, hwy))
p + geom_point(aes(colour = cty)) p + geom_point(aes(colour = class)) Created on 2024-06-21 with reprex v2.1.0 |
Maybe it's worth having a |
Thomas and I discussed this to some extent and we plan to put better defaults behind an 'edition 2025' switch, similar in spirit to the testthat 3rd edition. |
It would be a shortcut for changing all of the default colour/fill scales.
The text was updated successfully, but these errors were encountered: