Violin plots with counts for weighting of aggregated data

Hello, is there a way to plot violin charts from aggregated values?

On a very large data set I had the idea only counting the same values (there are many), instead of writing every value to y. I found a discussion for ggplot2 that describes the problem and i think solves it:

Perhaps it could be an idea to use a custom calc module as @etpinard describes here:

But wouldn’t end this up in completely rewriting the statistical functions? What are your thoughts?

Thanks.