Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
stat_bin2d with drop=FALSE still drops some 0-count cells #2202
Comments
karawoo
added bug layers
labels
Jul 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alchenist commentedJul 12, 2017
•
edited
The
dropparameter in stat_bin2d does not appear to work as advertised: docs state that "if [doc is] TRUE removes all cells with 0 counts." Given this, my expected behavior whendrop = FALSEwas something akin to the bottom plot. Instead,drop = FALSEresults in the second plot, which does keep 0-count cells in x- or y-bins with some values but omits them in bins with no values.Is this expected behavior? Or should bin indices that don't appear at all in the data be added back into the output of
ulevelsapplied to bin indices intapply_df?