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

Problem, when a zero in the data is included: Is there a workaround? #20

Closed
cutterkom opened this issue Apr 19, 2016 · 3 comments
Closed
Assignees

Comments

@cutterkom
Copy link

I am using waffle in a for looping over a dataframe and generating multiple plots.

An example from my data:
1 99
85 15
8 92
1 99
10 90
0 100

The problem is the last set of numbers: When there is a 0 included, waffle behaves like it's a 100. The zero seems to be ignored. Is there a way to prevent this?

Working: Green = 10, orange = 90
waffle(c(10, 90))

Not working: Green = 0
waffle(c(0, 100))

image

image

@zx8754
Copy link

zx8754 commented Apr 20, 2016

@ghost ghost added the bug label Apr 20, 2016
@ghost ghost assigned ghost and hrbrmstr and unassigned ghost Apr 20, 2016
@ghost ghost added enhancement bug and removed bug labels Apr 20, 2016
hrbrmstr added a commit that referenced this issue Apr 20, 2016
@ghost
Copy link

ghost commented Apr 20, 2016

gridExtra::grid.arrange(
  waffle(c(thing1=0, thing2=100), rows=5),  
  waffle(c(thing1=25, thing2=75), rows=5)
)

image

@ghost ghost closed this as completed Apr 20, 2016
@ghost
Copy link

ghost commented Apr 20, 2016

i did not notice locally that i was still in the CRAN branch.

i'll move it over to master when i get a chance. apologies.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants