-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement dodge by shifting each category if necessary, based on the dodge vector #7
Comments
Yep, that's what I'd envision. Dodging would mutate the xs of position before applying calculate. Similar to bar/violin plots. |
Gotcha -- how would we want to handle dodge grouping? Would we want to just have an API like Makie's boxplot: using CairoMakie
categories = rand(1:3, 1000)
values = randn(1000)
dodge = rand(1:2, 1000)
boxplot(categories, values, dodge = dodge, color = dodge) Or were you thinking of something else? |
Nope, it would be pretty much that. Maybe we could hoist the category utilization code out of |
Brilliant! Last question -- how would we want to What do you think @asinghvi17 ? Either way, I'll work on a naive implementation to see what I can do here. I like the idea of hoisting things by the way. But maybe, let's wait until we have the feature fleshed out some more before we do a bit more of an overhaul? |
I would imagine so - but that could also be based on the dodge width! There is already a readymade utility function in Makie for dodging: and the way |
With all this handling, maybe we should move the category code into the recipe? But then there would be no control from the algorithm's end.
The text was updated successfully, but these errors were encountered: