Skip to content

Prevent instantiating NULL palettes #6448

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6447.

Briefly, using the replace_null() function will set NULL elements when replacements are not present. Such NULL elements would then override proper palettes causing the bug. This PR prevents those palettes from being initiated to NULL elements. This still allows an explicit theme(palette.colour.continuous = NULL) to replace an older palette.

@teunbrand teunbrand added this to the ggplot2 4.0.0 milestone May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setting continuous colour not working for geom_point when followed by a continuous fill colour set
1 participant