-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Inconsistent Scale Management #2851
Comments
Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you! If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down the page. Please make sure your reprex is created with the reprex package as it gives nicely formatted output and avoids a number of common pitfalls. |
This is a documentation and feature consistency issue not a function issue. When I think of the colour scales available, I think of
The top-level functions should have a generally similar argument structure as much as feasible to prevent the need to re-learn each function individually. There are required differences given the differences in the way that graphics are selected underneath. They are not documented similarly currently; They are not managed similarly:
Feature ConsistencyI think that the behavior of
Documentation ConsistencyA few hours ago, it took digging into the code to figure out how to change the default
|
Related: #2691 |
In #5946 we moved away from the |
I recently upgraded to ggplot2 version 3.0.0, and I was surprised by the change to discrete scales where I was now getting a yellow value (near-invisible on a white background). As I was looking into how to change the default back to the prior behavior, I noticed inconsistent handling of colour scale types with ggplot2 version 3.
scale_colour_continuous()
a newtype
argument along with an option managed bygetOption("ggplot2.continuous.colour", default="gradient")
determines how the scale is determined.scale_colour_ordinal()
is assigned toscale_colour_viridis_d()
, but it is not mentioned in the manual.If global options will be the way that default scales are managed in the future, could a new help page be added for all the options that control ggplot2? (My preference is that this will be moved away from.)
Can the default function used to control each scale be defined in a single help page to assist with finding how to change the default behavior?
The text was updated successfully, but these errors were encountered: