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

Inconsistent legend labelling #23

Closed
puterleat opened this issue Jun 16, 2016 · 1 comment
Closed

Inconsistent legend labelling #23

puterleat opened this issue Jun 16, 2016 · 1 comment

Comments

@puterleat
Copy link

I think this is a problem:

waffle(c(`a`=0, `b`=20, `c`=20), rows=5, pad=1,
       colors=c("red", '#cccccc', "#969696"))

waffle(c(`a`=10, `b`=20, `c`=20), rows=5, pad=1,
       colors=c("red", '#cccccc', "#969696"))

In the first plot the legend is labelled with a and b, even though there are no a's. Note in plot 1 B's appear in red. In the second plot A's appear in red.

@hrbrmstr
Copy link
Owner

actually, they don't if you're using the github devel version of waffle

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

No branches or pull requests

2 participants