Skip to content

show.legend for factor data for all levels, even when not observed #6037

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

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

agmurray
Copy link
Contributor

Added text to show how to add color to legends for all levels, even when no data for some levels exists.

Fixes #5869

Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request, I think this is a great start!
There are a few things that ideally should be worded slightly differently, please see the suggestion below.
Lastly, would you mind running devtools::document() to update the corresponding .Rd file as well?
If you'd like any help, please don't hesitate to stop Thomas or me!

agmurray and others added 2 commits August 15, 2024 11:44
edits from Tuen

Co-authored-by: Teun van den Brand <49372158+teunbrand@users.noreply.github.com>
Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

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

Looks great, thank you so much for the contribution!

@teunbrand teunbrand merged commit 11244c5 into tidyverse:main Aug 15, 2024
13 checks passed
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.

Fill and color guides for factor with drop=FALSE don't show color.
2 participants