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

Weighted dotplots #218

Open
5 tasks
mjskay opened this issue Mar 4, 2024 · 0 comments
Open
5 tasks

Weighted dotplots #218

mjskay opened this issue Mar 4, 2024 · 0 comments

Comments

@mjskay
Copy link
Owner

mjskay commented Mar 4, 2024

Occurs to me a simple version of this is dots/ellipses or squares that have different vertical sizes (easier layout problem than circles that have different radii, and more correct anyway). Something like a geom_weighted_dots(). Would need to do a bunch of stuff:

  • finally implement use of arbitrary layout algorithms in the binwidth finding algorithm (e.g. a shortcut version of each layout alg that just returns max height)
  • possibly allow limited support for shapes (at least ellipses, squares, maybe rounded rectangle or a pill shape, maybe even reimplement all pch shapes manually but allow stretching, or at least use the affine transforms to do it).
  • implement a geom_weighted_dots() and stat_weighted_dots() (for rvars at least).
  • possibly give a warning (maybe with option to turn it off --- or just tell people to unset the weights aesthetic) if weights are used with geom_dots(), suggesting folks used geom_weighted_dots()?
  • also consider if this should be a more visual aesthetic (like "dotheight" or "dotextent" or ???) that weights from a dist could be mapped onto?
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

1 participant