Skip to content

jitter does not place outlier correctly in boxplot when just one outlier #1189

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

Closed
bklingen opened this issue Jan 31, 2018 · 1 comment
Closed

Comments

@bklingen
Copy link

If there is just one outlier in your data and you are drawing a boxplot using jitter, the outlier is printed in the upper left corner (barely visible), not at all where it should be. If there are two outliers, everything works fine.

## plots oulier of 20 half visible in upper left corner
plot_ly(y = ~c(1:10, 20), type="box", jitter=0.1)
## works fine with no jittering
plot_ly(y = ~c(1:10, 20), type="box")
## Jittering works fine with two outliers
## plots outliers 20 and 21 right where they should be, with a little jitter
plot_ly(y = ~c(1:10, 20, 21), type="box", jitter=0.1)

The x coordinate ofthe outlier seems to be wrong when using jitter with a single outlier.

Thanks,
Bernhard

@cpsievert
Copy link
Collaborator

Thanks! Moving to plotly/plotly.js#2061

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