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
Allow weights in statistical recipes #1816
Conversation
Friendly bump 😃 The added functionality generalizes what @piever, since you have written most of the code that this PR touches – would you mind reviewing it if you find some time? |
@@ -71,6 +73,7 @@ function plot!(plot::Violin) | |||
npoints = n, | |||
(bound === automatic ? NamedTuple() : (boundary = bound,))..., | |||
(bw === automatic ? NamedTuple() : (bandwidth = bw,))..., | |||
(w === automatic ? NamedTuple() : (weights = StatsBase.weights(view(w, idxs)),))... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add a utility function to filter out automatic
keywords, but that should be done separately.
Nice! Looks good to me (just left two tiny formatting comments). I have a minor doubt as to whether we should call |
Co-authored-by: Pietro Vertechi <pietro.vertechi@protonmail.com>
I've applied your suggestions, thanks for the review! |
Great!
Can you add that to the docs project? |
Done! I hadn't realized that the docs are actually built for non-member contributors these days. That's great news! |
I would like to use this for a lecture in about a week. If it's not too much of a hassle for you, I'd appreciate this being merged and tagged before May 8. If you don't plan a new tag soon, please let me know and I'll adjust my material accordingly |
I'll try to release a new version! |
Would a breaking version work for you as well? |
that's fine, thanks for asking! |
Add the keyword
weights
toboxplot
,density
,hist
,violin
.density
violin
boxplot
hist