Skip to content
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

Improve pal_qualitative() #5954

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5013.

Briefly, it implements the fix proposed here and polishes pal_qualitative() a little bit.

Tangentially related, shouldn't pal_qualitative() be a function in {scales}?

@@ -1,6 +1,5 @@
test_that("scale_hue() checks the type input", {
pal <- pal_qualitative(type = 1:4)
expect_snapshot_error(pal(4))
expect_snapshot_error(pal_qualitative(type = 1:4))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error is now thrown in palette factory rather than the output function.

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.

unexpected behavior when setting named vector for default colour/fill
1 participant