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

[Feature Request] Swarm Plot #3421

Open
2 tasks done
hydrosquall opened this issue Feb 26, 2018 · 3 comments
Open
2 tasks done

[Feature Request] Swarm Plot #3421

hydrosquall opened this issue Feb 26, 2018 · 3 comments
Labels

Comments

@hydrosquall
Copy link
Member

hydrosquall commented Feb 26, 2018

Hi team!

As a data analyst, I would like to be able to create swarm plots using vega-lite, as they are a nice way to display all the points in a distribution without losing granularity like one would with a histogram. I would eventually want to layer them next to a box plot, as I was inspired by the visualization shared in this tweet.

I noticed that regular vega has a similar looking plot. https://vega.github.io/vega/examples/beeswarm-plot/

Thanks for your consideration!

** Checklist **

  • Check for duplicate issues (searched for swarm in issues )
  • Describe how to reproduce the bug / the goal of the new feature request
@kanitw
Copy link
Member

kanitw commented Feb 26, 2018

We plan to support jittering in the future #396, which would allow you to reproduce the screenshot in the tweet you included. (The non-box-plot half is basically a dot plot with jittering.)

Note that this is different from the beeswarm-plot in Vega which uses force directed layout though.
Currently we don't have plan to support force directed layout in Vega-Lite in the near future. (There are many other more important futures to hit.

Since this will be a part of #396, I'll close this issue for now.

@kanitw kanitw closed this as completed Feb 26, 2018
@joelostblom
Copy link
Contributor

@kanitw Is there any chance of having this issue reopened even if it is not in the part of the immediate future (I can also open a new issue if that's easier)? I think bee/swarm/hive plots are very useful since they indicate both distribution shape and the position of individual data points in a single plot (instead of e.g. combining a violinplot with a jittered dot plot).

@joelostblom
Copy link
Contributor

For reference, I started a related discussion in #8067 with some examples.

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

No branches or pull requests

3 participants