-
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
labeled breaks for binned color scale malfunction when show.limits = T #4831
Comments
Thanks, confirmed. It seems the problem is that, when Lines 104 to 110 in b9e1694
Lines 1122 to 1135 in b9e1694
|
yutannihilation
changed the title
labeled breaks for color scale malfunction when show.limits = T
labeled breaks for binned color scale malfunction when show.limits = T
May 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When formatting labels for breaks in color scales, ggplot returns an error for the length of label vector if show.limits = T. This error appears even if the breaks and labels vectors are the same length.
This may be because limits and breaks are passed to different vectors before compiling the final plot and therefore the user cannot easily write labels for limits and breaks together. An example is provided here: https://stackoverflow.com/questions/71976832/custom-labels-for-limit-and-break-values-when-using-scale-color-binned-in-r-ggpl
Is it possible to integrate limits and breaks in a more streamlined way to avoid the error message and not have to define labels with a custom function that circumvents the issue?
The text was updated successfully, but these errors were encountered: