forked from benjaminrich/vpcstats
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
Failure for group with single x-level #51
Comments
FYI, I'm working on a PR that should address this. |
billdenney
added a commit
to billdenney/tidyvpc
that referenced
this issue
Sep 12, 2023
Merged
billdenney
added a commit
to billdenney/tidyvpc
that referenced
this issue
Sep 12, 2023
Merged
Alright, the potential fixes are in the indicated PRs. I made it as two separate PRs since the calculation part seemed straight-forward and may require less thought/discussion while the plotting part seemed more opinion-based, so it may require more thought/discussion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default of "jenks" binning fails when there is a single value for a group. My first thought is that if there is a single x-value for a group then perhaps a narrow range around the x-range and do the VPC calculations just on that value with the binning as that value by itself, but there definitely could be other ideas.
The underlying error below comes from the
classInt
package, but I think that makes sense forclassInt
to give an error and we should probably detect single-value groups before sending it for interval selection.Created on 2023-09-12 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: