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

geom_bag #5

Open
benmarwick opened this issue Mar 22, 2016 · 3 comments
Open

geom_bag #5

benmarwick opened this issue Mar 22, 2016 · 3 comments

Comments

@benmarwick
Copy link
Contributor

I wonder if you might be interested in the addition of a geom_bagplot to draw bagplots, which are a kind of bivariate boxplot. I've drafted a basic geom that can draw a convex hull around a given proportion of points. That takes care of the 'bag' (which typically encloses 50% of the points), and now I'm working on getting the 'fence' (which is a hull that excludes outliers). If I can work it out (or someone else can), do you think it would make a suitable addition to ggalt?

bagplot-kashiwar9-26-638

@hrbrmstr
Copy link
Owner

Definitely open to it. Take a look at @bbolker's geom_encircle: https://github.com/hrbrmstr/ggalt/blob/master/R/geom_encircle.r (it may have solved some of the tech details).

@benmarwick
Copy link
Contributor Author

Righto, I've got a proof-of-concept and examples here: https://gist.github.com/benmarwick/00772ccea2dd0b0f1745 Some of the defaults might not yet be optimal, do let me know if you have any feedback.

@ghost
Copy link

ghost commented Apr 8, 2016

It is in DescTools (PlotBag) - https://cran.r-project.org/web/packages/DescTools/DescTools.pdf. Not a ggplot implementation however. BTW - PlotMiss with clust = T is also interesting.

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