-
Notifications
You must be signed in to change notification settings - Fork 3
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
"Too many" of the same value causes an error #13
Comments
Thanks for reporting. I've done some quick testing and it seems to be thresholded at
Is there a particular reason you wish to do this? I can't imagine a use case where plotting all of the same value as a violin would be informative. If you plot multiple groups this does not occur.
|
This appears to be an issue with a dependency but we could test for the exception in the package.
|
So this is how I stumbled upon the bug: The way I bypassed the error in my code was to add e^-10 to the first lowest number, but of course you cannot do that and instead you can check if there are more than 100 items in the vector, you just trim it to 100 and then plot it. |
This is corrected in vioplot 0.3.6 on CRAN. |
Thanks for the awesome package. The following is the issue I am facing:
When giving the vioplot too many of the same value (and only that value) it produces an error.
These work fine:
Adding one order of magnitude and it breaks:
The error I get is:
To clarify, if there is even one more number with another value, it will work as intended:
My session's info:
The text was updated successfully, but these errors were encountered: